Browse Source

Adjust board search on index page

Don't show on non-boards (like overboards)
Show inline, not as a new line
Remove useless comment
main
discomrade 3 years ago
parent
commit
ea6f004022
  1. 6
      templates/index.html

6
templates/index.html

@ -71,15 +71,13 @@
<a id="index-feature-top" href="{{ config.root }}{% if mod %}{{ config.file_mod }}?/{% endif %}{{ board.dir }}{{ config.dir.featured }}">[{% trans %}Featured{% endtrans %}]</a> <a id="index-feature-top" href="{{ config.root }}{% if mod %}{{ config.file_mod }}?/{% endif %}{{ board.dir }}{{ config.dir.featured }}">[{% trans %}Featured{% endtrans %}]</a>
{% endif %} {% endif %}
{% if config.board_search %} {% if config.board_search %}
<!-- Start Search Form --> {% if board.uri %}
<form style="display:inline" action="/search.php"> <form style="display:inline" action="/search.php">
<p style="margin: 10px;">
<input type="text" name="search" placeholder="{{ board.uri }} search"> <input type="text" name="search" placeholder="{{ board.uri }} search">
<input type="hidden" name="board" value="{{ board.uri }}"> <input type="hidden" name="board" value="{{ board.uri }}">
<input type="submit" value="Search"> <input type="submit" value="Search">
</p>
</form> </form>
<!-- End Search Form --> {% endif %}
{% endif %} {% endif %}
</span> </span>
<hr /> <hr />

Loading…
Cancel
Save