aboutsummaryrefslogtreecommitdiff
path: root/app/templates/index.html
blob: e79da35ada1d011ddf09da59dadbd15fa8cb1147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}

{% block title %}
Welcome
{% endblock %}

{% block container %}
<header>
	<div class="container">
		<h1>Content DB</h1>

		<p>
			Minetest's official content repository.
			Browse {{ count }} packages,
			majority of which available under a free and open source
			license.
		</p>

		<form method="get" action="/packages/">
			<input type="text" name="q" value="{{ query or ''}}" />
			<input type="submit" value="Search" />
		</form>
	</div>
</header>

<main>
	{% from "macros/packagegridtile.html" import render_pkggrid %}

	<h2>Popular</h2>
	{{ render_pkggrid(popular) }}

	<a href="{{ url_for('packages_page') }}" class="button">Show More</a>

	<h2 style="margin-top:2em;">Newly Added</h2>
	{{ render_pkggrid(new) }}

</main>
{% endblock %}