TorrentIndexer/templates/categories.html

29 lines
722 B
HTML
Raw Normal View History

<!--
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
{% block title %}{{ super() }} - Categories{% endblock%}
{% set active_page = "categories" %}
{% block content %}
2017-12-28 08:36:44 +01:00
<link href="{{ url_for("static", filename="css/categories.css") }}" rel="stylesheet">
2017-12-29 08:03:17 +01:00
<h2 class="headline">{{ _("Categories") }}</h2>
2017-12-28 19:13:27 +01:00
<div id="categories">
{% for category in categories %}
2017-12-28 21:51:16 +01:00
<div>
2017-12-28 19:13:27 +01:00
<ul>
<li>
2017-12-29 04:57:37 +01:00
<a href="search?c={{ category.id }}">{{ category.label }}</a>
2017-12-28 19:13:27 +01:00
<ul>
2017-12-29 04:57:37 +01:00
{% for sub_category in category.subcategories %}
2017-12-28 19:13:27 +01:00
<li>
2017-12-29 04:57:37 +01:00
<a href="search?s={{ sub_category.id }}">{{ sub_category.label }}</a>
2017-12-28 19:13:27 +01:00
</li>
{% endfor %}
</ul>
</li>
</ul>
2017-12-28 21:51:16 +01:00
</div>
2017-12-28 19:13:27 +01:00
{% endfor %}
</div>
{% endblock content%}