link to first content

This commit is contained in:
root 2017-12-20 19:12:14 +00:00
parent 6f2df206c8
commit 1b916114de

View File

@ -7,8 +7,8 @@
{% for gallery in object.public_galleries %}
<div class="row">
<div class="medium-9 columns">
{% if gallery.content %}
<h6 class="page-header"><a href="{{ gallery.content.get_absolute_url }}">Back to{{ gallery.content.title }}</a></h6>
{% if gallery.content.exists %}
<h6 class="page-header"><a href="{{ gallery.content.all.0.get_absolute_url }}">Back to {{ gallery.content.all.0.title }}</a></h6>
{% endif %}
<h5>From gallery {{ gallery.title }}</h5>
<ul class="slider1">