Add recent positive reviews to homepage

This commit is contained in:
rubenwardy
2020-07-09 05:22:58 +01:00
parent 25b481ac0a
commit 75ab56cad1
6 changed files with 52 additions and 21 deletions

View File

@@ -20,20 +20,6 @@
{% endblock %}
{% block content %}
<!-- <header class="jumbotron">
<div class="container">
<h1 class="display-3">{{ config.USER_APP_NAME }}</h1>
<p class="lead">
Minetest's official content repository.
Browse {{ count }} packages,
the majority of which are available under a free
and open source license.
</p>
</div>
</header>
<main class="container"> -->
{% from "macros/packagegridtile.html" import render_pkggrid %}
@@ -64,6 +50,11 @@
<h2 class="my-3">{{ _("Top Texture Packs") }}</h2>
{{ render_pkggrid(pop_txp) }}
<h2 class="my-3">{{ _("Recent Positive Reviews") }}</h2>
{% from "macros/reviews.html" import render_reviews %}
{{ render_reviews(reviews, True) }}
<div class="text-center">
<small>
{{ _("CDB has %(count)d packages, with a total of %(downloads)d downloads.", count=count, downloads=downloads) }}