2018-03-19 19:08:41 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ title }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-03-28 19:09:20 +01:00
|
|
|
{% if authors %}
|
|
|
|
<p class="alert alert-primary">
|
|
|
|
Did you mean to search for packages by
|
|
|
|
|
|
|
|
{% for author in authors %}
|
|
|
|
<a href="{{ url_for('packages.list_all', type=type, author=author[0], q=author[1]) }}">{{ author[0] }}</a>
|
|
|
|
{% if not loop.last %}
|
|
|
|
,
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
?
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2018-12-22 14:33:27 +01:00
|
|
|
<ul class="pagination mt-4">
|
|
|
|
<li class="page-item {% if not prev_url %}disabled{% endif %}">
|
|
|
|
<a class="page-link" {% if prev_url %}href="{{ prev_url }}"{% endif %}>«</a>
|
|
|
|
</li>
|
|
|
|
{% for n in range(1, page_max+1) %}
|
|
|
|
<li class="page-item {% if n == page %}active{% endif %}">
|
|
|
|
<a class="page-link"
|
2019-11-16 00:51:42 +01:00
|
|
|
href="{{ url_for('packages.list_all', type=type, q=query, page=n) }}">
|
2018-12-22 14:33:27 +01:00
|
|
|
{{ n }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
<li class="page-item {% if not next_url %}disabled{% endif %}">
|
|
|
|
<a class="page-link" {% if next_url %}href="{{ next_url }}"{% endif %}>»</a>
|
|
|
|
</li>
|
2018-05-29 17:52:53 +02:00
|
|
|
</ul>
|
2018-08-25 19:20:45 +02:00
|
|
|
|
|
|
|
{% 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 %}
|