contentdb/app/templates/packages/list.html
2018-03-26 13:04:09 +01:00

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 %}