home » zplus/clif.git
ID: 0214e3a7ab068fc33149579e0bf4da0dd53d9cc1
48 lines — 2K — View raw


{% extends "mailing_list/mailing_list.html" %}

{% block page_title %}Mailing list: {{ list_address }}{% endblock %}

{% block content %}
    
    <details class="filters">
        <summary>Filters</summary>
        
        <form action="" method="get">
            {% for tag in tags.keys()|sort %}
                <div class="tag">
                    <b>{{ tag }}:</b>
                    {% for value in tags[tag]|sort %}
                        <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 %}