From 01afa5aa3feb5f2231de99a1303b80f617b3b32a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 23 Dec 2017 12:19:35 +0000 Subject: [PATCH] related photos --- content/templates/base.html | 34 ++++++----- .../templates/photologue/gallery_detail.html | 15 +++-- .../templates/photologue/photo_detail.html | 61 +++++++++---------- 3 files changed, 57 insertions(+), 53 deletions(-) diff --git a/content/templates/base.html b/content/templates/base.html index 0f351af..0aa4559 100644 --- a/content/templates/base.html +++ b/content/templates/base.html @@ -51,25 +51,31 @@ diff --git a/content/templates/photologue/gallery_detail.html b/content/templates/photologue/gallery_detail.html index c1d8368..807b295 100644 --- a/content/templates/photologue/gallery_detail.html +++ b/content/templates/photologue/gallery_detail.html @@ -4,16 +4,15 @@ {% block title %}{{ gallery.title }}{% endblock %} {% block content %} -
+

{{ gallery.title }}

{% trans "Published" %} {{ gallery.date_added }}

{% if gallery.description %}{{ gallery.description|safe }}{% endif %} - {% for photo in gallery.public %} - - {{ photo.title }} - - {% endfor %} + {% for photo in gallery.public %} + + {{ photo.title }} + + {% endfor %}
{% trans "View all galleries" %}
-
- +
{% endblock %} diff --git a/content/templates/photologue/photo_detail.html b/content/templates/photologue/photo_detail.html index 771992c..d3177f9 100644 --- a/content/templates/photologue/photo_detail.html +++ b/content/templates/photologue/photo_detail.html @@ -7,43 +7,42 @@ {% for gallery in object.public_galleries %}
- {% if gallery.content.exists %} - - {% endif %} -
{{ gallery.title }}
- - } + {% if gallery.content.exists %} + + {% endif %} +
{{ gallery.title }}
+
    + {% for photo in gallery.public %} +
  • + {{ photo.title }} +

    + {{ photo.caption|safe }} + {% if photo.caption %}
    {%endif%} + Link to original file +

    + +
  • + {% endfor %} +
{% if object.public_galleries %} +

{% trans "Other photos" %}:

- +
{% for photo in gallery.public %} -
- - - - {% endfor %} -
- {{ photo.title }} -

{{ photo.caption|safe }} {{ photo.count }}

-
- {% endif %} - {% endfor %} +
+ + {{ photo.title }} + +
+ {% endfor %} +
+ {% endif %}
+{% endfor %} + {% endblock %}