mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-20 05:03:23 +00:00
43 lines
1.7 KiB
Django/Jinja
43 lines
1.7 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}SAS moderation{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3>{% trans %}SAS moderation{% endtrans %}</h3>
|
|
<div>
|
|
<form action="" method="get" enctype="multipart/form-data">
|
|
{% 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) }}">
|
|
<img src="{{ p.get_download_thumb_url() }}" alt="{{ p.name }}" style="width: 100px">
|
|
</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>
|
|
{% if p.asked_for_removal %}
|
|
<p class="important">{% trans %}Asked for removal{% endtrans %}</p>
|
|
{% endif %}
|
|
<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>
|
|
</div>
|
|
{% endfor %}
|
|
<p><input type="submit" value="{% trans %}Go{% endtrans %}" /></p>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|