TorrentIndexer/templates/categories.html

29 lines
711 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-28 19:13:27 +01:00
<h2 class="headline">Categories</h2>
<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%}