2018-06-11 23:49:25 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Threads") }}
|
2022-04-23 22:17:03 +02:00
|
|
|
{% if package %}
|
|
|
|
- {{ package.title }}
|
|
|
|
{% endif %}
|
2018-06-11 23:49:25 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-04-23 22:17:03 +02:00
|
|
|
{% if current_user.is_authenticated and package %}
|
|
|
|
<a href="{{ url_for('threads.new', pid=package and package.id) }}" class="btn btn-primary float-right">{{ _("New Thread") }}</a>
|
|
|
|
{% endif %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<h1>{{ self.title() }}</h1>
|
2018-06-11 23:49:25 +02:00
|
|
|
|
2020-12-22 13:22:52 +01:00
|
|
|
{% from "macros/pagination.html" import render_pagination %}
|
2018-06-11 23:49:25 +02:00
|
|
|
{% from "macros/threads.html" import render_threadlist %}
|
2020-12-22 13:22:52 +01:00
|
|
|
{{ render_pagination(pagination, url_set_query) }}
|
|
|
|
|
2020-07-10 20:46:14 +02:00
|
|
|
<div class="list-group">
|
|
|
|
{{ render_threadlist(threads) }}
|
|
|
|
</div>
|
2020-12-22 13:22:52 +01:00
|
|
|
|
|
|
|
{{ render_pagination(pagination, url_set_query) }}
|
|
|
|
|
2018-06-11 23:49:25 +02:00
|
|
|
{% endblock %}
|