2018-03-19 19:08:41 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-03-21 21:02:53 +01:00
|
|
|
<form method="get" action="">
|
|
|
|
<input type="text" name="q" value="{{ query or ''}}" />
|
|
|
|
<input type="submit" value="Search" />
|
|
|
|
</form>
|
|
|
|
|
2018-03-19 19:08:41 +01:00
|
|
|
<ul>
|
|
|
|
{% for p in packages %}
|
2018-03-20 04:16:46 +01:00
|
|
|
<li><a href="{{ p.getDetailsURL() }}">
|
2018-03-19 19:08:41 +01:00
|
|
|
{{ p.title }} by {{ p.author.display_name }}
|
|
|
|
</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><i>No packages available</i></ul>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-03-26 12:28:34 +02:00
|
|
|
|
|
|
|
<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 %}
|
2018-03-26 13:42:35 +02:00
|
|
|
<li><a href="{{ url_for('packages_page', q=(query or '')+' tag:'+t.name) }}">
|
2018-03-26 12:28:34 +02:00
|
|
|
{{ t.title }}
|
|
|
|
</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><i>No tags available</i></ul>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-03-19 19:08:41 +01:00
|
|
|
{% endblock %}
|