mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-13 05:19:26 +00:00
WIP
This commit is contained in:
@ -40,17 +40,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if clipboard %}
|
||||
<div class="clipboard">
|
||||
{% trans %}Clipboard: {% endtrans %}
|
||||
<ul>
|
||||
{% for f in clipboard %}
|
||||
<li>{{ f.get_full_path() }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<input name="clear" type="submit" value="{% trans %}Clear clipboard{% endtrans %}">
|
||||
</div>
|
||||
{% endif %}
|
||||
{# {% if clipboard %}#}
|
||||
{# <div class="clipboard">#}
|
||||
{# {% trans %}Clipboard: {% endtrans %}#}
|
||||
{# <ul>#}
|
||||
{# {% for f in clipboard["albums"] %}#}
|
||||
{# <li>{{ f.get_full_path() }}</li>#}
|
||||
{# {% endfor %}#}
|
||||
{# </ul>#}
|
||||
{# <input name="clear" type="submit" value="{% trans %}Clear clipboard{% endtrans %}">#}
|
||||
{# </div>#}
|
||||
{# {% endif %}#}
|
||||
{% endif %}
|
||||
|
||||
{% if show_albums %}
|
||||
@ -73,8 +73,8 @@
|
||||
<div class="text">{% trans %}To be moderated{% endtrans %}</div>
|
||||
</template>
|
||||
</div>
|
||||
{% if is_sas_admin %}
|
||||
<input type="checkbox" name="file_list" :value="album.id">
|
||||
{% if edit_mode %}
|
||||
<input type="checkbox" name="album_list" :value="album.id">
|
||||
{% endif %}
|
||||
</a>
|
||||
</template>
|
||||
@ -100,7 +100,7 @@
|
||||
</template>
|
||||
</div>
|
||||
{% if is_sas_admin %}
|
||||
<input type="checkbox" name="file_list" :value="picture.id">
|
||||
<input type="checkbox" name="picture_list" :value="picture.id">
|
||||
{% endif %}
|
||||
</a>
|
||||
</template>
|
||||
@ -120,9 +120,9 @@
|
||||
{% csrf_token %}
|
||||
<div class="inputs">
|
||||
<p>
|
||||
<label for="{{ upload_form.images.id_for_label }}">{{ upload_form.images.label }} :</label>
|
||||
{{ upload_form.images|add_attr("x-ref=pictures") }}
|
||||
<span class="helptext">{{ upload_form.images.help_text }}</span>
|
||||
<label for="{{ form.images.id_for_label }}">{{ form.images.label }} :</label>
|
||||
{{ form.images|add_attr("x-ref=pictures") }}
|
||||
<span class="helptext">{{ form.images.help_text }}</span>
|
||||
</p>
|
||||
<input type="submit" value="{% trans %}Upload{% endtrans %}" />
|
||||
<progress x-ref="progress" x-show="sending"></progress>
|
||||
|
@ -3,17 +3,11 @@
|
||||
{% if a.thumbnail %}
|
||||
{% set img = a.get_download_url() %}
|
||||
{% set src = a.name %}
|
||||
{% elif a.children.filter(is_folder=False, is_moderated=True).exists() %}
|
||||
{% set picture = a.children.filter(is_folder=False).first().as_picture %}
|
||||
{% set img = picture.get_download_thumb_url() %}
|
||||
{% set src = picture.name %}
|
||||
{% else %}
|
||||
{% set img = static('core/img/sas.jpg') %}
|
||||
{% set src = "sas.jpg" %}
|
||||
{% endif %}
|
||||
<div
|
||||
class="album{% if not a.is_moderated %} not_moderated{% endif %}"
|
||||
>
|
||||
<div class="album{% if not a.is_moderated %} not_moderated{% endif %}">
|
||||
<img src="{{ img }}" alt="{{ src }}" loading="lazy" />
|
||||
{% if not a.is_moderated %}
|
||||
<div class="overlay"> </div>
|
||||
|
Reference in New Issue
Block a user