mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-13 02:53:51 +01:00
536da2add2
Fixes #35
37 lines
790 B
HTML
37 lines
790 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="get" action="">
|
|
<input type="text" name="q" value="{{ query or ''}}" />
|
|
<input type="submit" value="Search" />
|
|
</form>
|
|
|
|
<ul>
|
|
{% for p in packages %}
|
|
<li><a href="{{ p.getDetailsURL() }}">
|
|
{{ p.title }} by {{ p.author.display_name }}
|
|
</a></li>
|
|
{% else %}
|
|
<li><i>No packages available</i></ul>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h3>Tags</h3>
|
|
<div class="box box_grey alert alert-warning">
|
|
Filtering by tag doesn't actually work yet!
|
|
</div>
|
|
<ul>
|
|
{% for t in tags %}
|
|
<li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name) }}">
|
|
{{ t.title }}
|
|
</a></li>
|
|
{% else %}
|
|
<li><i>No tags available</i></ul>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|