]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/index.html
Add delete unused uploads admin function
[cheatdb.git] / app / templates / index.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 {{ _("Welcome") }}
5 {% endblock %}
6
7 {% block scriptextra %}
8 <script type="application/ld+json">
9 {
10   "@context": "https://schema.org",
11   "@type": "WebSite",
12   "url": "https://content.minetest.net/",
13   "potentialAction": {
14     "@type": "SearchAction",
15     "target": "https://content.minetest.net/packages?q={search_term_string}",
16     "query-input": "required name=search_term_string"
17   }
18 }
19 </script>
20 {% endblock %}
21
22 {% block content %}
23 <!-- <header class="jumbotron">
24         <div class="container">
25                 <h1 class="display-3">{{ config.USER_APP_NAME }}</h1>
26
27                 <p class="lead">
28                         Minetest's official content repository.
29                         Browse {{ count }} packages,
30                         the majority of which are available under a free
31                         and open source license.
32                 </p>
33         </div>
34 </header>
35
36 <main class="container"> -->
37         {% from "macros/packagegridtile.html" import render_pkggrid %}
38
39
40         <a href="{{ url_for('packages.list_all', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
41                 {{ _("See more") }}
42         </a>
43         <h2 class="my-3">{{ _("Recently Added") }}</h2>
44         {{ render_pkggrid(new) }}
45
46
47         <a href="{{ url_for('packages.list_all', type='mod', sort='score', order='desc') }}" class="btn btn-secondary float-right">
48                 {{ _("See more") }}
49         </a>
50         <h2 class="my-3">{{ _("Top Mods") }}</h2>
51         {{ render_pkggrid(pop_mod) }}
52
53
54         <a href="{{ url_for('packages.list_all', type='game', sort='score', order='desc') }}" class="btn btn-secondary float-right">
55                 {{ _("See more") }}
56         </a>
57         <h2 class="my-3">{{ _("Top Games") }}</h2>
58         {{ render_pkggrid(pop_gam) }}
59
60
61         <a href="{{ url_for('packages.list_all', type='txp', sort='score', order='desc') }}" class="btn btn-secondary float-right">
62                 {{ _("See more") }}
63         </a>
64         <h2 class="my-3">{{ _("Top Texture Packs") }}</h2>
65         {{ render_pkggrid(pop_txp) }}
66
67         <div class="text-center">
68                 <small>
69                         {{ _("CDB has %(count)d packages, with a total of %(downloads)d downloads.", count=count, downloads=downloads) }}
70                 </small>
71         </div>
72 <!-- </main> -->
73 {% endblock %}