]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/packages/list.html
Add download button and URL
[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="">
9                 <input type="text" name="q" value="{{ query or ''}}" />
10                 <input type="submit" value="Search" />
11         </form>
12
13         <ul>
14                 {% for p in packages %}
15                         <li><a href="{{ p.getDetailsURL() }}">
16                                 {{ p.title }} by {{ p.author.display_name }}
17                         </a></li>
18                 {% else %}
19                         <li><i>No packages available</i></ul>
20                 {% endfor %}
21         </ul>
22 {% endblock %}