yenu/resources/templates/detail.html

51 lines
1.1 KiB
HTML
Raw Normal View History

{% extends "layout.html" %}
{% block content %}
2017-03-21 23:35:13 +01:00
<div class="btn-group pull-right" role="group">
{% if next-image %}
<a class="btn btn-secondary" href="/show/{{ next-image.id }}">
{% else %}
<a class="btn btn-secondary disabled" href="#">
{% endif %}
Nächstes Bild
</a>
2017-03-21 23:35:13 +01:00
{% if prev-image %}
<a class="btn btn-secondary" href="/show/{{ prev-image.id }}">
{% else %}
<a class="btn btn-secondary disabled" href="#">
{% endif %}
Vorheriges Bild
</a>
</div>
<div class="clearfix"></div>
<div class="pull-left">
<h1>{{ image.title }}</h1>
<br>
<p>{{ image.created_at|parse-date|date:"dd-MM-yyyy HH:mm" }}</p>
<br>
<div id="image-tags">
{% for tag in tags %}
<span class="tag tag-info">{{ tag.tagname }}</span>
{% endfor %}
</div>
</div>
<div class="clearfix"></div>
2017-03-21 23:35:13 +01:00
<div class="detail-image">
<a href="/images/raw/{{ image.hash }}.png">
<img class="card-img-top" src="/images/raw/{{ image.hash }}.png" alt="{{ image.title }}"/>
</a>
</div>
{% if image.description|length > 0 %}
2017-03-21 23:35:13 +01:00
<div>
<p>{{ image.description|markdown-to-html|safe }}</p>
</div>
{% endif %}
{% endblock %}