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 %}
|
|
|
|
|
2020-07-12 21:10:19 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
|
|
|
{{ render_pkggrid(packages) }}
|
2020-03-28 19:09:20 +01:00
|
|
|
|
2018-05-29 17:52:53 +02:00
|
|
|
|
2020-07-12 21:10:19 +02:00
|
|
|
{% from "macros/pagination.html" import render_pagination %}
|
|
|
|
{{ render_pagination(pagination, url_set_query) }}
|
2020-07-10 23:08:52 +02:00
|
|
|
|
|
|
|
|
2020-07-12 21:10:19 +02:00
|
|
|
{% if topics %}
|
|
|
|
<h2 style="margin-top:2em;">More content from the forums</h2>
|
2018-08-25 19:20:45 +02:00
|
|
|
|
2020-07-12 21:10:19 +02:00
|
|
|
{% from "macros/topics.html" import render_topics %}
|
|
|
|
{{ render_topics(topics, current_user) }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2018-08-25 19:20:45 +02:00
|
|
|
|
2020-07-12 21:10:19 +02:00
|
|
|
<aside class="col-md-3">
|
|
|
|
<p class="text-muted">Filter by tags</p>
|
|
|
|
|
|
|
|
{% for pair in tags %}
|
|
|
|
{% set count = pair[0] %}
|
|
|
|
{% set tag = pair[1] %}
|
|
|
|
|
|
|
|
{% if tag in selected_tags %}
|
|
|
|
<a class="badge badge-primary"
|
|
|
|
href="{{ url_set_query(page=1, _remove={ 'tag': tag.name }) }}">
|
|
|
|
|
|
|
|
{{ tag.title }}
|
|
|
|
({{ count }})
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="badge badge-secondary"
|
|
|
|
href="{{ url_set_query(page=1, _add={ 'tag': tag.name }) }}">
|
|
|
|
|
|
|
|
{{ tag.title }}
|
|
|
|
({{ count }})
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</aside>
|
|
|
|
</div>
|
2018-08-25 19:20:45 +02:00
|
|
|
|
2018-03-19 19:08:41 +01:00
|
|
|
{% endblock %}
|