Browse Source

add filter link #35

main
ghost 1 year ago
parent
commit
002a41da87
  1. 13
      templates/default/torrent/list.html.twig
  2. 8
      translations/messages+intl-icu.cs.xlf
  3. 8
      translations/messages+intl-icu.de.xlf
  4. 8
      translations/messages+intl-icu.en.xlf
  5. 8
      translations/messages+intl-icu.eo.xlf
  6. 8
      translations/messages+intl-icu.es.xlf
  7. 8
      translations/messages+intl-icu.fr.xlf
  8. 8
      translations/messages+intl-icu.he.xlf
  9. 8
      translations/messages+intl-icu.it.xlf
  10. 8
      translations/messages+intl-icu.ja.xlf
  11. 8
      translations/messages+intl-icu.ka.xlf
  12. 8
      translations/messages+intl-icu.lv.xlf
  13. 8
      translations/messages+intl-icu.nl.xlf
  14. 8
      translations/messages+intl-icu.pl.xlf
  15. 8
      translations/messages+intl-icu.pt.xlf
  16. 8
      translations/messages+intl-icu.ru.xlf
  17. 8
      translations/messages+intl-icu.uk.xlf

13
templates/default/torrent/list.html.twig

@ -5,6 +5,19 @@
{% if query %} {% if query %}
<h2>{{ 'Search results' | trans }}</h2> <h2>{{ 'Search results' | trans }}</h2>
<sub> <sub>
{% if app.request.get('filter') %}
<a class="margin-l-4-px" href="{{ path('torrent_search', { query : query | url_encode(true) }) }}" title="{{ 'Hide filter' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filter-square-fill" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm.5 5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM4 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm2 3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5z"/>
</svg>
</a>
{% else %}
<a class="text-color-night margin-l-4-px" href="{{ path('torrent_search', { query : query | url_encode(true), filter : 'true' }) }}" title="{{ 'Show filter' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filter-square-fill" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm.5 5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM4 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm2 3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5z"/>
</svg>
</a>
{% endif %}
<a class="text-color-night margin-x-4-px" href="{{ path('rss_torrents_recent', { query : query | url_encode(true) }) }}" title="RSS"> <a class="text-color-night margin-x-4-px" href="{{ path('rss_torrents_recent', { query : query | url_encode(true) }) }}" title="RSS">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2zm0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2zm.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/> <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2zm0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2zm.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>

8
translations/messages+intl-icu.cs.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.de.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.en.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.eo.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.es.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.fr.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.he.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.it.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.ja.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.ka.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.lv.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.nl.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.pl.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.pt.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>other</target> <target>other</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.ru.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>другое</target> <target>другое</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Скрыть фильтр</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Показать фильтр</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

8
translations/messages+intl-icu.uk.xlf

@ -901,6 +901,14 @@
<source>other</source> <source>other</source>
<target>інше</target> <target>інше</target>
</trans-unit> </trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Приховати фільтр</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Показати фільтр</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

Loading…
Cancel
Save