update torrent features

This commit is contained in:
ghost 2023-10-13 00:08:45 +03:00
parent d1f8c126b0
commit e713c17333
16 changed files with 661 additions and 329 deletions

View file

@ -1,5 +1,6 @@
<form class="margin-t-16-px" name="search" method="get" action="{{ path('search_index') }}">
<form class="margin-t-16-px" name="search" method="get" action="{{ path('torrent_search') }}">
<input class="min-width-200-px" type="text" name="query" value="{{ query }}" placeholder="{{ 'Keyword, file, hash...' | trans }}" />
{#
<select name="type">
{% if type == 'torrent' %}
<option value="torrent" selected="selected">{{ 'Torrents' | trans }}</option>
@ -12,5 +13,6 @@
<option value="article">{{ 'Articles' | trans }}</option>
{% endif %}
</select>
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
#}
<input {% if query is not null %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
</form>