diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-18 02:31:38 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-18 02:31:38 +0100 |
| commit | e45b4da09abba0e28cdecc30b188a19b804df695 (patch) | |
| tree | d4b948086b469e35c4186f4b6432c042e19796b0 /app/templates | |
| parent | 6711eb4afe045b1e43dbbec224063e0b087e8901 (diff) | |
| download | cheatdb-e45b4da09abba0e28cdecc30b188a19b804df695.tar.xz | |
Improve package list design
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/list.html | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index 5242018..79426fd 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -11,27 +11,20 @@ <input type="submit" value="Search" /> </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 %} - </ul> + <aside class="box box_grey outsidecontainer"> + <h3>Tags</h3> - <h3>Tags</h3> - <div class="box box_grey alert alert-warning"> - Filtering by tag doesn't actually work yet! - </div> - <ul> - {% 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> + <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) }} {% endblock %} |
