moderation.jinja 1.87 KB
Newer Older
Skia's avatar
Skia committed
1 2 3 4 5 6 7 8
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}SAS moderation{% endtrans %}
{% endblock %}

{% block content %}
<h3>{% trans %}SAS moderation{% endtrans %}</h3>
Skia's avatar
Skia committed
9
<div id="moderation">
Skia's avatar
Skia committed
10 11
    <form action="" method="POST" enctype="multipart/form-data">
    {% csrf_token %}
Skia's avatar
Skia committed
12
    {% for p in pictures %}
Skia's avatar
Skia committed
13
    <div style="">
Skia's avatar
Skia committed
14
        {% if p.is_folder %}
Skia's avatar
Skia committed
15
            <strong>{% trans %}Album{% endtrans %}</strong>
Skia's avatar
Skia committed
16
        {% else %}
Skia's avatar
Skia committed
17
            <strong>{% trans %}Picture{% endtrans %}</strong>
Skia's avatar
Skia committed
18 19 20
        {% endif %}
        <p>
            <a href="{{ url("sas:picture", picture_id=p.id) }}">
Skia's avatar
Skia committed
21
                <img src="{{ p.get_download_compressed_url() }}" alt="{{ p.name }}">
Skia's avatar
Skia committed
22 23 24 25 26
            </a><br/>
            {% trans %}Full name: {% endtrans %}{{ p.get_parent_path()+'/'+p.name }}<br/>
            {% trans %}Owner: {% endtrans %}{{ p.owner.get_display_name() }}<br/>
            {% trans %}Date: {% endtrans %}{{ p.date|date(DATE_FORMAT) }} {{ p.date|time(TIME_FORMAT) }}<br/>
        </p>
27 28 29
        {% if p.asked_for_removal %}
        <p class="important">{% trans %}Asked for removal{% endtrans %}</p>
        {% endif %}
Skia's avatar
Skia committed
30
        <p>
Skia's avatar
Skia committed
31
        <input type="radio" name="a_{{ p.id }}" id="m_{{ p.id }}" value="moderate"/>
Skia's avatar
Skia committed
32 33 34
        <a href="{{ url('core:file_moderate', file_id=p.id) }}?next={{ url('sas:moderation') }}">{% trans %}Moderate{% endtrans %}</a>
        </p>
        <p>
Skia's avatar
Skia committed
35
        <input type="radio" name="a_{{ p.id }}" id="m_{{ p.id }}" value="delete"/>
Skia's avatar
Skia committed
36 37
        <a href="{{ url('core:file_delete', file_id=p.id) }}?next={{ url('sas:moderation') }}">{% trans %}Delete{% endtrans %}</a>
        </p>
Skia's avatar
Skia committed
38 39 40 41
        <p>
        <input type="radio" name="a_{{ p.id }}" id="m_{{ p.id }}" value="nothing" checked/>
        {% trans %}Do nothing{% endtrans %}
        </p>
Skia's avatar
Skia committed
42 43
    </div>
    {% endfor %}
Skia's avatar
Skia committed
44 45
    <p><input type="submit" value="{% trans %}Go{% endtrans %}" /></p>
    </form>
Skia's avatar
Skia committed
46 47
</div>
{% endblock %}