]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/packages/list.html
Add WIP forum topic support
[cheatdb.git] / app / templates / packages / list.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 {{ title }}
5 {% endblock %}
6
7 {% block content %}
8         <form method="get" action="" class="plsearchform">
9                 {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
10                 <input type="text" name="q" value="{{ query or ''}}" />
11                 <input type="submit" value="Search" />
12
13                 <p>
14                         Found {{ packages_count }} packages.
15                 </p>
16         </form>
17
18         <!--<aside class="box box_grey outsidecontainer">
19                 <h3>Tags</h3>
20
21                 <ul class="flatlist">
22                         {% for t in tags %}
23                                 <li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name, type=type) }}">
24                                         {{ t.title }}
25                                 </a></li>
26                         {% else %}
27                                 <li><i>No tags available</i></ul>
28                         {% endfor %}
29                 </ul>
30         </aside> -->
31
32         {% from "macros/packagegridtile.html" import render_pkggrid %}
33         {{ render_pkggrid(packages) }}
34
35         <ul class="buttonset linedbuttonset">
36                 {% if prev_url %}<li><a href="{{ prev_url }}">Previous</a></li>{% endif %}
37                 <li>{{ page }} / {{ page_max }}</li>
38                 {% if next_url %}<li><a href="{{ next_url }}">Next</a></li> {% endif %}
39         </ul>
40 {% endblock %}