2016-11-20 09:40:49 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
{% from "core/macros.jinja" import user_link_with_pict, delete_godfather %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s pictures{% endtrans %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-11-25 12:47:09 +00:00
|
|
|
{% for r in profile.pictures.exclude(picture=None).values('user__pictures__picture__parent').distinct() %}
|
2016-11-20 22:53:41 +00:00
|
|
|
<div style="padding: 10px">
|
2016-11-25 12:47:09 +00:00
|
|
|
{% set album = profile.pictures.filter(picture__parent=r['user__pictures__picture__parent']).first().picture.parent %}
|
2016-11-20 22:53:41 +00:00
|
|
|
<h4>{{ album.name }}</h4>
|
|
|
|
<hr>
|
2016-11-25 12:47:09 +00:00
|
|
|
{% for r in profile.pictures.exclude(picture=None).filter(picture__parent=album).order_by('id') %}
|
2016-11-20 22:53:41 +00:00
|
|
|
<div class="picture">
|
|
|
|
<a href="{{ url("sas:picture", picture_id=r.picture.id) }}#pict">
|
|
|
|
<img src="{{ r.picture.as_picture.get_download_thumb_url() }}" alt="{{ r.picture.get_display_name() }}" style="max-width: 100%"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2016-11-20 09:40:49 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|
|
|
|
|