photo26/photologue_custom/templates/photologue/photo_detail.html
2021-10-15 09:53:21 +02:00

34 lines
No EOL
1.1 KiB
HTML

{% extends "photologue/root.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load photologue_tags i18n %}
{% block title %}{{ object.title }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12">
<h1>{{ object.title }}</h1>
<p class="text-muted small">{% trans "Published" %} {{ object.date_added }}</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
{% if object.caption %}<p>{{ object.caption|safe }}</p>{% endif %}
<a href="{{ object.image.url }}">
<img src="{{ object.get_display_url }}" class="img-thumbnail" alt="{{ object.title }}">
</a>
</div>
<div class="col-md-4">
{% if object.public_galleries %}
<p>{% trans "This photo is found in the following galleries" %}:</p>
<ul>
{% for gallery in object.public_galleries %}
<li><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endblock %}