ID: 4d957dbb11d0fc1bdf84b46507b0e23c78426adc
46 lines
—
2K —
View raw
| {% extends "mailing_list/mailing_list.html" %}
{% block content %}
<details class="filters">
<summary>Filters</summary>
<form action="" method="get">
{% for tag in tags %}
<div class="tag">
<b>{{ tag }}:</b>
{% for value in tags[tag] %}
<label><input type="checkbox" name="{{ tag }}" value="{{ value }}" {{ 'checked' if value in query_tags[tag] }} /> {{ value }}</label>
{% endfor %}
</div>
{% endfor %}
<div class="buttons">
<input type="submit" value="Filter threads" />
<a href="{{ url('threads', repository=repository[:-10]) }}">Remove all</a>
</div>
</form>
</details>
<div class="threads">
{% for thread in threads %}
<div>
<div class="title">
<a href="{{ url('thread', repository=repository[:-10], thread_id=thread.id) }}">{{ thread.title }}</a>
</div>
<div class="subtitle">
#{{ thread.id }}
Created {{ thread.datetime|ago }}
{% if 'label' in thread['tags'] %}
{% for label in thread['tags']['label'] %}
<span class="tag">{{ label }}</span>
{% endfor %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% endblock %}
|