mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 03:23:46 +01:00
38 lines
882 B
HTML
38 lines
882 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{{ title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="get" action="">
|
|
{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
|
|
<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, type=type) }}">
|
|
{{ t.title }}
|
|
</a></li>
|
|
{% else %}
|
|
<li><i>No tags available</i></ul>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|