]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/packages/list.html
Add forum topic validation
[cheatdb.git] / app / templates / packages / list.html
index 1c40cfa74fa1260ba227a80707318139de91a5d8..0ce5c90954d7035196200e44d876c691c375827b 100644 (file)
@@ -5,18 +5,36 @@
 {% endblock %}
 
 {% block content %}
-       <form method="get" action="">
+       <form method="get" action="" class="plsearchform">
+               {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
                <input type="text" name="q" value="{{ query or ''}}" />
                <input type="submit" value="Search" />
+
+               <p>
+                       Found {{ packages_count }} packages.
+               </p>
        </form>
 
-       <ul>
-               {% for p in packages %}
-                       <li><a href="{{ p.getDetailsURL() }}">
-                               {{ p.title }} by {{ p.author.display_name }}
-                       </a></li>
-               {% else %}
-                       <li><i>No packages available</i></ul>
-               {% endfor %}
+       <!--<aside class="box box_grey outsidecontainer">
+               <h3>Tags</h3>
+
+               <ul class="flatlist">
+                       {% for t in tags %}
+                               <li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name, type=type) }}">
+                                       {{ t.title }}
+                               </a></li>
+                       {% else %}
+                               <li><i>No tags available</i></ul>
+                       {% endfor %}
+               </ul>
+       </aside> -->
+
+       {% from "macros/packagegridtile.html" import render_pkggrid %}
+       {{ render_pkggrid(packages) }}
+
+       <ul class="buttonset linedbuttonset">
+               {% if prev_url %}<li><a href="{{ prev_url }}">Previous</a></li>{% endif %}
+               <li>{{ page }} / {{ page_max }}</li>
+               {% if next_url %}<li><a href="{{ next_url }}">Next</a></li> {% endif %}
        </ul>
 {% endblock %}