Sith/core/templates/core/file_moderation.jinja

29 lines
1.1 KiB
Django/Jinja
Raw Normal View History

2016-11-09 08:13:57 +00:00
{% extends "core/base.jinja" %}
{% block title %}
{% trans %}File moderation{% endtrans %}
2016-11-09 08:13:57 +00:00
{% endblock %}
{% block content %}
<h3>{% trans %}File moderation{% endtrans %}</h3>
<div>
2016-11-09 08:13:57 +00:00
{% for f in files %}
<div style="margin: 2px; padding: 2px; border: solid 1px red; text-align: center">
2016-11-09 08:13:57 +00:00
{% if f.is_folder %}
<strong>Folder</strong>
2016-11-09 08:13:57 +00:00
{% else %}
<strong>File</strong>
2016-11-09 08:13:57 +00:00
{% endif %}
<p>
<a href="{{ url("core:file_detail", file_id=f.id) }}">{{ f.name }}</a><br/>
{% trans %}Full name: {% endtrans %}{{ f.get_parent_path()+'/'+f.name }}<br/>
{% trans %}Owner: {% endtrans %}{{ f.owner.get_display_name() }}<br/>
{% trans %}Date: {% endtrans %}{{ f.date|date(DATE_FORMAT) }} {{ f.date|time(TIME_FORMAT) }}<br/>
2016-11-09 08:13:57 +00:00
</p>
<p><a href="{{ url('core:file_moderate', file_id=f.id) }}">{% trans %}Moderate{% endtrans %}</a> -
<a href="{{ url('core:file_delete', file_id=f.id) }}?next={{ url('core:file_moderation') }}">{% trans %}Delete{% endtrans %}</a></p>
</div>
2016-11-09 08:13:57 +00:00
{% endfor %}
</div>
2016-11-09 08:13:57 +00:00
{% endblock %}