aboutsummaryrefslogtreecommitdiff
path: root/app/templates/index.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-18 02:48:22 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-18 02:48:22 +0100
commit68a132f271b04eb7c1812609c6be4f78960fad22 (patch)
tree0bfc0ec08ba691ff453215258182051e07587b2d /app/templates/index.html
parentc7b1dcec4f3f924ad300ddb662eb573b1677c979 (diff)
downloadcheatdb-68a132f271b04eb7c1812609c6be4f78960fad22.tar.xz
Add tags list to homepage
Diffstat (limited to 'app/templates/index.html')
-rw-r--r--app/templates/index.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
index 1911058..6fb833e 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -58,6 +58,20 @@
{{ render_pkggrid(pop_txp) }}
+ <h2 class="my-3">{{ _("Search by Tags") }}</h2>
+ {% for pair in tags %}
+ {% set count = pair[0] %}
+ {% set tag = pair[1] %}
+
+ <a class="btn btn-sm btn-secondary m-1" rel="nofollow"
+ href="{{ url_for('packages.list_all', tag=tag.name) }}">
+ {{ tag.title }}
+ <span class="badge badge-pill badge-light ml-1">{{ count }}</span>
+ </a>
+ {% endfor %}
+ <div class="clearfix mb-4"></div>
+
+
<a href="{{ url_for('packages.list_reviews') }}" class="btn btn-secondary float-right">
{{ _("See more") }}
</a>