aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages/list.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-03-28 18:09:20 +0000
committerrubenwardy <rw@rubenwardy.com>2020-03-28 18:13:03 +0000
commit3e07bed51bf910517c16ec42d35c49ac424d793e (patch)
tree98559ec034537a76c80969da7e0cb45d001f1d1a /app/templates/packages/list.html
parent9de219fd80cf6c441e61850062707d3ef329e0e0 (diff)
downloadcheatdb-3e07bed51bf910517c16ec42d35c49ac424d793e.tar.xz
Add ability to search packages by author
Diffstat (limited to 'app/templates/packages/list.html')
-rw-r--r--app/templates/packages/list.html15
1 files changed, 15 insertions, 0 deletions
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) }}