contentdb/app/templates/packages/list.html

50 lines
1.3 KiB
HTML
Raw Normal View History

2018-03-19 19:08:41 +01:00
{% extends "base.html" %}
{% block title %}
{{ title }}
{% endblock %}
{% block content %}
2018-05-21 15:56:00 +02:00
<form method="get" action="" class="plsearchform">
2018-03-26 14:04:09 +02:00
{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
2018-03-21 21:02:53 +01:00
<input type="text" name="q" value="{{ query or ''}}" />
<input type="submit" value="Search" />
2018-08-25 19:50:05 +02:00
<input type="submit" name="lucky" value="I'm feeling lucky" />
2018-05-21 15:56:00 +02:00
<p>
2018-05-29 17:52:53 +02:00
Found {{ packages_count }} packages.
2018-05-21 15:56:00 +02:00
</p>
2018-03-21 21:02:53 +01:00
</form>
2018-05-26 04:08:14 +02:00
<!--<aside class="box box_grey outsidecontainer">
2018-05-18 03:31:38 +02:00
<h3>Tags</h3>
2018-03-26 12:28:34 +02:00
2018-05-18 03:31:38 +02:00
<ul class="flatlist">
{% 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>
2018-05-26 04:08:14 +02:00
</aside> -->
2018-05-18 03:31:38 +02:00
{% from "macros/packagegridtile.html" import render_pkggrid %}
{{ render_pkggrid(packages) }}
2018-05-29 17:52:53 +02:00
<ul class="buttonset linedbuttonset">
{% if prev_url %}<li><a href="{{ prev_url }}">Previous</a></li>{% endif %}
<li>{{ page }} / {{ page_max }}</li>
{% if next_url %}<li><a href="{{ next_url }}">Next</a></li> {% endif %}
</ul>
{% if topics %}
<h2 style="margin-top:2em;">More content from the forums</h2>
{% from "macros/topics.html" import render_topics %}
{{ render_topics(topics, current_user) }}
{% endif %}
2018-03-19 19:08:41 +01:00
{% endblock %}