contentdb/app/templates/index.html

75 lines
2.1 KiB
HTML
Raw Normal View History

2018-03-18 18:43:30 +01:00
{% extends "base.html" %}
{% block title %}
2019-07-29 22:44:39 +02:00
{{ _("Welcome") }}
2018-03-18 18:43:30 +01:00
{% endblock %}
{% block scriptextra %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://content.minetest.net/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://content.minetest.net/packages?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
{% endblock %}
2018-12-22 22:03:01 +01:00
{% block content %}
2018-05-18 02:32:34 +02:00
{% from "macros/packagegridtile.html" import render_pkggrid %}
2018-12-22 22:03:01 +01:00
2020-07-18 02:22:52 +02:00
<a href="{{ url_for('packages.list_all', sort='last_release', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 22:44:39 +02:00
{{ _("See more") }}
2018-12-22 22:03:01 +01:00
</a>
2020-07-18 02:22:52 +02:00
<h2 class="my-3">{{ _("Recently Updated") }}</h2>
{{ render_pkggrid(updated) }}
2018-12-22 22:03:01 +01:00
2020-07-18 02:22:52 +02:00
<a href="{{ url_for('packages.list_all', type='game', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 22:44:39 +02:00
{{ _("See more") }}
2018-12-22 22:03:01 +01:00
</a>
2020-07-18 02:22:52 +02:00
<h2 class="my-3">{{ _("Top Games") }}</h2>
{{ render_pkggrid(pop_gam) }}
2020-07-18 02:22:52 +02:00
<a href="{{ url_for('packages.list_all', type='mod', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 22:44:39 +02:00
{{ _("See more") }}
2018-12-22 22:13:56 +01:00
</a>
2020-07-18 02:22:52 +02:00
<h2 class="my-3">{{ _("Top Mods") }}</h2>
{{ render_pkggrid(pop_mod) }}
2018-12-22 22:13:56 +01:00
<a href="{{ url_for('packages.list_all', type='txp', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 22:44:39 +02:00
{{ _("See more") }}
2018-12-22 22:03:01 +01:00
</a>
2019-07-29 22:44:39 +02:00
<h2 class="my-3">{{ _("Top Texture Packs") }}</h2>
2018-12-22 22:03:01 +01:00
{{ render_pkggrid(pop_txp) }}
2020-07-18 02:22:52 +02:00
<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) }}
2020-07-10 21:30:31 +02:00
<a href="{{ url_for('packages.list_reviews') }}" class="btn btn-secondary float-right">
{{ _("See more") }}
</a>
<h2 class="my-3">{{ _("Recent Positive Reviews") }}</h2>
{% from "macros/reviews.html" import render_reviews %}
{{ render_reviews(reviews, current_user, True) }}
2020-07-09 06:34:25 +02:00
<div class="text-center mt-5">
<small>
2019-07-29 22:44:39 +02:00
{{ _("CDB has %(count)d packages, with a total of %(downloads)d downloads.", count=count, downloads=downloads) }}
</small>
</div>
2018-12-22 22:03:01 +01:00
<!-- </main> -->
2018-03-18 18:43:30 +01:00
{% endblock %}