home » zplus/clif.git
ID: 84cc3d98b9d8ac6529184640a54f5e3f39c09db4
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 %}
                <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 %}