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 %}
|
|
|
|
|
2019-02-02 18:05:18 +01:00
|
|
|
{% 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-07-04 02:05:32 +02:00
|
|
|
|
2018-12-22 22:03:01 +01:00
|
|
|
|
2020-07-18 02:48:21 +02:00
|
|
|
<a href="{{ url_for('packages.list_all', sort='approved_at', order='desc') }}" class="btn btn-secondary float-right">
|
2020-07-18 02:27:23 +02:00
|
|
|
{{ _("See more") }}
|
|
|
|
</a>
|
|
|
|
<h2 class="my-3">{{ _("Recently Added") }}</h2>
|
|
|
|
{{ render_pkggrid(new) }}
|
|
|
|
|
|
|
|
|
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) }}
|
2018-07-04 02:20:55 +02:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
2019-11-16 00:51:42 +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) }}
|
2018-07-04 02:20:55 +02:00
|
|
|
|
2020-07-09 06:22:58 +02:00
|
|
|
|
2020-07-18 03:48:22 +02:00
|
|
|
<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"
|
2020-07-18 03:54:40 +02:00
|
|
|
title="{{ tag.description or '' }}"
|
2020-07-18 03:48:22 +02:00
|
|
|
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>
|
|
|
|
|
|
|
|
|
2020-12-14 12:48:07 +01:00
|
|
|
<a href="{{ url_for('packages.list_all', sort='reviews', order='desc') }}" class="btn btn-secondary float-right">
|
|
|
|
{{ _("See more") }}
|
|
|
|
</a>
|
|
|
|
<h2 class="my-3">{{ _("Top Reviewed") }}</h2>
|
|
|
|
{{ render_pkggrid(high_reviewed) }}
|
|
|
|
|
|
|
|
|
2020-07-10 21:30:31 +02:00
|
|
|
<a href="{{ url_for('packages.list_reviews') }}" class="btn btn-secondary float-right">
|
|
|
|
{{ _("See more") }}
|
|
|
|
</a>
|
2020-07-09 06:22:58 +02:00
|
|
|
<h2 class="my-3">{{ _("Recent Positive Reviews") }}</h2>
|
|
|
|
{% from "macros/reviews.html" import render_reviews %}
|
2020-07-10 20:01:58 +02:00
|
|
|
{{ render_reviews(reviews, current_user, True) }}
|
2020-07-09 06:22:58 +02:00
|
|
|
|
2020-07-18 02:27:23 +02:00
|
|
|
|
2020-07-09 06:34:25 +02:00
|
|
|
<div class="text-center mt-5">
|
2018-12-31 15:01:19 +01:00
|
|
|
<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) }}
|
2018-12-31 15:01:19 +01:00
|
|
|
</small>
|
|
|
|
</div>
|
2018-12-22 22:03:01 +01:00
|
|
|
<!-- </main> -->
|
2018-03-18 18:43:30 +01:00
|
|
|
{% endblock %}
|