2016-10-26 17:21:19 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% trans %}SAS{% endtrans %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h3>{{ sithfile.get_display_name() }}</h3>
|
2016-11-08 00:43:13 +00:00
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p() }}
|
|
|
|
<p><input type="submit" value="{% trans %}Upload{% endtrans %}" /></p>
|
|
|
|
</form>
|
2016-10-26 17:21:19 +00:00
|
|
|
<div>
|
|
|
|
{% for a in sithfile.children.filter(is_folder=True).all() %}
|
|
|
|
<div style="display: inline-block; border: solid 1px black;">
|
|
|
|
<a href="{{ url("sas:album", album_id=a.id) }}">{{ a.name }}</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{% for a in sithfile.children.filter(mime_type__in=['image/jpeg', 'image/png']).all() %}
|
|
|
|
{% if a.as_picture.can_be_viewed_by(user) %}
|
|
|
|
<div style="display: inline-block; border: solid 1px black;">
|
|
|
|
<a href="{{ url("sas:picture", picture_id=a.id) }}">
|
|
|
|
<img src="{{ a.as_picture.get_download_url() }}" alt="{{ a.get_display_name() }}" style="width: 50px"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|