link gallery back to event

This commit is contained in:
vaishk 2017-12-21 00:14:11 +05:30
parent c2c80641a8
commit 6f2df206c8

View File

@ -7,7 +7,9 @@
{% for gallery in object.public_galleries %}
<div class="row">
<div class="medium-9 columns">
<h6 class="page-header"><a href="/events/{{gallery.slug}}/">BACK</a></h6>
{% if gallery.content %}
<h6 class="page-header"><a href="{{ gallery.content.get_absolute_url }}">Back to{{ gallery.content.title }}</a></h6>
{% endif %}
<h5>From gallery {{ gallery.title }}</h5>
<ul class="slider1">
{% for photo.pk in gallery.public %}
@ -23,6 +25,7 @@
{% endfor %}
{% endfor %}
</ul>
}
</div>
<div class="medium-3 columns">
{% if object.public_galleries %}