aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages/list.html
blob: 53ffac08a3ea64c096c1444af0a1843bd87c5183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% extends "base.html" %}

{% block title %}
{{ title }}
{% endblock %}

{% block content %}
	<form method="get" action="" class="plsearchform">
		{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
		<input type="text" name="q" value="{{ query or ''}}" />
		<input type="submit" value="Search" />

		<p>
			Found {{ packages_count }} packages.
		</p>
	</form>

	<!--<aside class="box box_grey outsidecontainer">
		<h3>Tags</h3>

		<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>
	</aside> -->

	{% from "macros/packagegridtile.html" import render_pkggrid %}
	{{ render_pkggrid(packages) }}

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

{% endblock %}