aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-18 01:27:23 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-18 01:27:23 +0100
commit7d0a93483acb7b81b94813957b41fb863cc8ea25 (patch)
tree2a91ff60485890c1d6bd405a796e4b420c1f63a1 /app/templates
parent836caf0fe0707e01eb4e9afbcf39aa42c6c8963e (diff)
downloadcheatdb-7d0a93483acb7b81b94813957b41fb863cc8ea25.tar.xz
Reorder homepage sections
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/index.html15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
index 3a80f8c..896239d 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -23,6 +23,13 @@
{% from "macros/packagegridtile.html" import render_pkggrid %}
+ <a href="{{ url_for('packages.list_all', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
+ {{ _("See more") }}
+ </a>
+ <h2 class="my-3">{{ _("Recently Added") }}</h2>
+ {{ render_pkggrid(new) }}
+
+
<a href="{{ url_for('packages.list_all', sort='last_release', order='desc') }}" class="btn btn-secondary float-right">
{{ _("See more") }}
</a>
@@ -51,13 +58,6 @@
{{ render_pkggrid(pop_txp) }}
- <a href="{{ url_for('packages.list_all', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
- {{ _("See more") }}
- </a>
- <h2 class="my-3">{{ _("Recently Added") }}</h2>
- {{ render_pkggrid(new) }}
-
-
<a href="{{ url_for('packages.list_reviews') }}" class="btn btn-secondary float-right">
{{ _("See more") }}
</a>
@@ -65,6 +65,7 @@
{% from "macros/reviews.html" import render_reviews %}
{{ render_reviews(reviews, current_user, True) }}
+
<div class="text-center mt-5">
<small>
{{ _("CDB has %(count)d packages, with a total of %(downloads)d downloads.", count=count, downloads=downloads) }}