diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-26 13:04:09 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-26 13:04:09 +0100 |
| commit | 28d967e3e274c1afe797c753c3e996b1c3a710f5 (patch) | |
| tree | 5289168b8080b1aa71778410c68fb1532e4b6f02 /app/templates | |
| parent | 821832770c88929b87b3db7285dd51594415bbaf (diff) | |
| download | cheatdb-28d967e3e274c1afe797c753c3e996b1c3a710f5.tar.xz | |
Add type to tag links
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index cd7f7d9..5242018 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -6,6 +6,7 @@ {% block content %} <form method="get" action=""> + {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %} <input type="text" name="q" value="{{ query or ''}}" /> <input type="submit" value="Search" /> </form> @@ -26,7 +27,7 @@ </div> <ul> {% for t in tags %} - <li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name) }}"> + <li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name, type=type) }}"> {{ t.title }} </a></li> {% else %} |
