contentdb/app/templates/index.html

54 lines
1.3 KiB
HTML
Raw Normal View History

2018-03-18 18:43:30 +01:00
{% extends "base.html" %}
{% block title %}
2018-05-18 05:18:57 +02:00
Welcome
2018-03-18 18:43:30 +01:00
{% endblock %}
2018-12-22 22:03:01 +01:00
{% block content %}
<!-- <header class="jumbotron">
2018-05-18 01:16:10 +02:00
<div class="container">
2018-12-21 16:58:43 +01:00
<h1 class="display-3">{{ config.USER_APP_NAME }}</h1>
2018-03-21 21:10:11 +01:00
2018-12-21 16:58:43 +01:00
<p class="lead">
2018-05-09 19:58:09 +02:00
Minetest's official content repository.
2018-05-24 21:42:26 +02:00
Browse {{ count }} packages,
2018-11-09 11:58:39 +01:00
the majority of which are available under a free
and open source license.
2018-05-09 19:58:09 +02:00
</p>
2018-05-18 01:16:10 +02:00
</div>
</header>
2018-03-18 18:43:30 +01:00
2018-12-22 22:03:01 +01:00
<main class="container"> -->
2018-05-18 02:32:34 +02:00
{% from "macros/packagegridtile.html" import render_pkggrid %}
2018-12-22 22:03:01 +01:00
<a href="{{ url_for('packages_page', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
See more
</a>
2018-12-22 22:41:30 +01:00
<h2 class="my-3">Recently Added</h2>
2018-12-22 22:03:01 +01:00
{{ render_pkggrid(new) }}
2018-12-22 22:41:30 +01:00
<a href="{{ url_for('packages_page', type='mod', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2018-12-22 22:03:01 +01:00
See more
</a>
2018-12-22 22:41:30 +01: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_page', type='game', sort='score', order='desc') }}" class="btn btn-secondary float-right">
See more
</a>
<h2 class="my-3">Top Games</h2>
{{ render_pkggrid(pop_gam) }}
<a href="{{ url_for('packages_page', type='txp', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2018-12-22 22:03:01 +01:00
See more
</a>
<h2 class="my-3">Top Texture Packs</h2>
{{ render_pkggrid(pop_txp) }}
2018-12-22 22:03:01 +01:00
<!-- </main> -->
2018-03-18 18:43:30 +01:00
{% endblock %}