Add picture view to users

This commit is contained in:
Skia
2016-11-20 10:40:49 +01:00
parent 22ab21e4e1
commit 71d22e367b
4 changed files with 45 additions and 0 deletions

View File

@ -4,7 +4,16 @@
{% trans %}SAS{% endtrans %}
{% endblock %}
{% macro print_path(file) %}
{% if file %}
{{ print_path(file.parent) }}
<a href="{{ url('sas:album', album_id=file.id) }}">{{ file.get_display_name() }}</a> >
{% endif %}
{% endmacro %}
{% block content %}
{{ print_path(album.parent) }} {{ album.get_display_name() }}
<h3>{{ album.get_display_name() }}</h3>
<div>
{% for a in album.children.filter(is_folder=True, is_moderated=True).all() %}