diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-26 11:28:34 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-26 11:28:34 +0100 |
| commit | 05444e8018763def07e034513ec8f232d26bedd4 (patch) | |
| tree | 1d7e1afd58f642dadae50ef30ee430bd2cc1d4dc /app/templates | |
| parent | c19f93e36db24303b77757d5cfe6c9ec2aaee30e (diff) | |
| download | cheatdb-05444e8018763def07e034513ec8f232d26bedd4.tar.xz | |
Add tags
Fixes #4
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/list.html | 14 | ||||
| -rw-r--r-- | app/templates/packages/view.html | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index 1c40cfa..666e5af 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -19,4 +19,18 @@ <li><i>No packages available</i></ul> {% endfor %} </ul> + + <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.getName()) }}"> + {{ t.title }} + </a></li> + {% else %} + <li><i>No tags available</i></ul> + {% endfor %} + </ul> {% endblock %} diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 58631c9..55d0d57 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -98,6 +98,15 @@ {% endfor %} </ul> + <h3>Tags</h3> + <ul> + {% for t in package.tags %} + <li>{{ t.title }}</li> + {% else %} + <li>No tags.</li> + {% endfor %} + </ul> + {% if current_user.is_authenticated or requests %} <h3>Edit Requests</h3> |
