2022-12-27 22:09:10 +01:00
|
|
|
{% extends '../global.html' %}
|
|
|
|
|
2022-12-29 21:31:11 +01:00
|
|
|
{% load i18n %}
|
2022-12-27 22:09:10 +01:00
|
|
|
{% load responsive_images %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if gallery.title %}
|
|
|
|
<h1>{{gallery.title}}</h1>
|
|
|
|
{% endif %}
|
2022-12-29 21:31:11 +01:00
|
|
|
<a href="{% url 'gallery_upload' gallery_id=gallery.id %}">{% translate 'Upload image to this gallery' %}</a>
|
2022-12-27 22:09:10 +01:00
|
|
|
<section class="RV-Images">
|
|
|
|
<li class="RV-Images__list">
|
|
|
|
{% for image in gallery.images.all %}
|
2022-12-28 15:57:52 +01:00
|
|
|
<a href="{% url 'image_through_gallery' gallery_id=gallery.id image_id=image.id %}" class="RV-Image__link RV-Image__link--detail">
|
2022-12-27 22:09:10 +01:00
|
|
|
<img class="RV-Image__source" src="{% src image.image_file 200x200 %}">
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</li>
|
|
|
|
{% if gallery.private and gallery.visitors.all|length > 0 and gallery.created_by == visitor %}
|
|
|
|
<div>
|
2022-12-29 21:31:11 +01:00
|
|
|
<h2>{% translate 'You have gained access to the following people' %}</h2>
|
2022-12-27 22:09:10 +01:00
|
|
|
{% for visitor in gallery.visitors.all %}
|
2022-12-29 21:31:11 +01:00
|
|
|
{{visitor.name}} <a href="{% url 'gallery_revoke_access' gallery_id=gallery.id visitor_id=visitor.id %}">{% translate 'Revoke access' %}</a>
|
2022-12-27 22:09:10 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
{% endblock content %}
|