diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-03-28 18:09:20 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-03-28 18:13:03 +0000 |
| commit | 3e07bed51bf910517c16ec42d35c49ac424d793e (patch) | |
| tree | 98559ec034537a76c80969da7e0cb45d001f1d1a /app/templates | |
| parent | 9de219fd80cf6c441e61850062707d3ef329e0e0 (diff) | |
| download | cheatdb-3e07bed51bf910517c16ec42d35c49ac424d793e.tar.xz | |
Add ability to search packages by author
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/base.html | 2 | ||||
| -rw-r--r-- | app/templates/packages/list.html | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 4db84d7..6a74725 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -129,7 +129,7 @@ {% endblock %} <footer class="container footer-copyright my-5 page-footer font-small text-center"> - ContentDB © 2018-9 to <a href="https://rubenwardy.com/">rubenwardy</a> | + ContentDB © 2018-20 to <a href="https://rubenwardy.com/">rubenwardy</a> | <a href="https://github.com/minetest/contentdb">GitHub</a> | <a href="{{ url_for('flatpage', path='help') }}">{{ _("Help") }}</a> | <a href="{{ url_for('flatpage', path='policy_and_guidance') }}">{{ _("Policy and Guidance") }}</a> | diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index 4aea5a0..057fe22 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -5,6 +5,21 @@ {% endblock %} {% block content %} + {% if authors %} + <p class="alert alert-primary"> + Did you mean to search for packages by + + {% for author in authors %} + <a href="{{ url_for('packages.list_all', type=type, author=author[0], q=author[1]) }}">{{ author[0] }}</a> + {% if not loop.last %} + , + {% endif %} + {% endfor %} + ? + </p> + {% endif %} + + {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages) }} |
