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

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

{% block content %}
<h3>{% trans %}SAS moderation{% endtrans %}</h3>
<div>
Skia's avatar
Skia committed
10
    <form action="" method="get" enctype="multipart/form-data">
Skia's avatar
Skia committed
11
12
13
14
15
16
17
18
19
    {% for p in pictures %}
    <div style="margin: 2px; padding: 2px; border: solid 1px red; text-align: center">
        {% if p.is_folder %}
        <strong>Album</strong>
        {% else %}
        <strong>Picture</strong>
        {% endif %}
        <p>
            <a href="{{ url("sas:picture", picture_id=p.id) }}">
Skia's avatar
Skia committed
20
                <img src="{{ p.get_download_thumb_url() }}" alt="{{ p.name }}" style="width: 100px">
Skia's avatar
Skia committed
21
22
23
24
25
            </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>
26
27
28
        {% if p.asked_for_removal %}
        <p class="important">{% trans %}Asked for removal{% endtrans %}</p>
        {% endif %}
Skia's avatar
Skia committed
29
30
31
32
33
34
35
36
        <p>
        <input type="radio" name="action_{{ p.id }}" id="m_{{ p.id }}" value="moderate"/>
        <a href="{{ url('core:file_moderate', file_id=p.id) }}?next={{ url('sas:moderation') }}">{% trans %}Moderate{% endtrans %}</a>
        </p>
        <p>
        <input type="radio" name="action_{{ p.id }}" id="m_{{ p.id }}" value="delete"/>
        <a href="{{ url('core:file_delete', file_id=p.id) }}?next={{ url('sas:moderation') }}">{% trans %}Delete{% endtrans %}</a>
        </p>
Skia's avatar
Skia committed
37
38
    </div>
    {% endfor %}
Skia's avatar
Skia committed
39
40
    <p><input type="submit" value="{% trans %}Go{% endtrans %}" /></p>
    </form>
Skia's avatar
Skia committed
41
42
</div>
{% endblock %}