From 3e07bed51bf910517c16ec42d35c49ac424d793e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Mar 2020 18:09:20 +0000 Subject: Add ability to search packages by author --- app/templates/packages/list.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/templates/packages') 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 %} +

+ Did you mean to search for packages by + + {% for author in authors %} + {{ author[0] }} + {% if not loop.last %} + , + {% endif %} + {% endfor %} + ? +

+ {% endif %} + + {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages) }} -- cgit v1.2.3