]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/packages/list.html
da0d80cac29b171cf5acbc89445df380e0df6e28
[cheatdb.git] / app / templates / packages / list.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 {{ title }}
5 {% endblock %}
6
7 {% block content %}
8         {% if authors %}
9                 <p class="alert alert-primary">
10                         Did you mean to search for packages by
11
12                         {% for author in authors %}
13                                 <a href="{{ url_for('packages.list_all', type=type, author=author[0], q=author[1]) }}">{{ author[0] }}</a>
14                                 {% if not loop.last %}
15                                 ,
16                                 {% endif %}
17                         {% endfor %}
18                         ?
19                 </p>
20         {% endif %}
21
22
23         {% from "macros/packagegridtile.html" import render_pkggrid %}
24         {{ render_pkggrid(packages) }}
25
26
27         {% from "macros/pagination.html" import render_pagination %}
28         {{ render_pagination(pagination, url_set_query) }}
29
30
31         {% if topics %}
32                 <h2 style="margin-top:2em;">More content from the forums</h2>
33
34                 {% from "macros/topics.html" import render_topics %}
35                 {{ render_topics(topics, current_user) }}
36         {% endif %}
37
38 {% endblock %}