mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
{% extends "core/base.jinja" %}
 | 
						|
 | 
						|
{% block title %}
 | 
						|
{% trans %}SAS moderation{% endtrans %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
<h3>{% trans %}SAS moderation{% endtrans %}</h3>
 | 
						|
<div id="moderation">
 | 
						|
    <form action="" method="POST" enctype="multipart/form-data">
 | 
						|
    {% csrf_token %}
 | 
						|
    {% for p in pictures %}
 | 
						|
    <div style="">
 | 
						|
        {% if p.is_folder %}
 | 
						|
            <strong>{% trans %}Album{% endtrans %}</strong>
 | 
						|
        {% else %}
 | 
						|
            <strong>{% trans %}Picture{% endtrans %}</strong>
 | 
						|
        {% endif %}
 | 
						|
        <p>
 | 
						|
            <a href="{{ url("sas:picture", picture_id=p.id) }}">
 | 
						|
                <img src="{{ p.get_download_compressed_url() }}" alt="{{ p.name }}">
 | 
						|
            </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="a_{{ 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="a_{{ 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>
 | 
						|
        <p>
 | 
						|
        <input type="radio" name="a_{{ p.id }}" id="m_{{ p.id }}" value="nothing" checked/>
 | 
						|
        {% trans %}Do nothing{% endtrans %}
 | 
						|
        </p>
 | 
						|
    </div>
 | 
						|
    {% endfor %}
 | 
						|
    <p><input type="submit" value="{% trans %}Go{% endtrans %}" /></p>
 | 
						|
    </form>
 | 
						|
</div>
 | 
						|
{% endblock %}
 |