70 lines
1.6 KiB
HTML
70 lines
1.6 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<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 %}
|
|
<span class="fa fa-arrow-left"></span>
|
|
Nächstes Bild
|
|
</a>
|
|
|
|
<a class="btn btn-secondary" href="/">
|
|
<span class="fa fa-home"></span>
|
|
Zur Gallerie
|
|
</a>
|
|
|
|
{% if prev-image %}
|
|
<a class="btn btn-secondary" href="/show/{{ prev-image.id }}">
|
|
{% else %}
|
|
<a class="btn btn-secondary disabled" href="#">
|
|
{% endif %}
|
|
Vorheriges Bild
|
|
<span class="fa fa-arrow-right"></span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="btn-group pull-left" role="group">
|
|
<a class="btn btn-primary btn-sm" href="/edit/{{ image.id }}">
|
|
<span class="fa fa-pencil"></span>
|
|
Bearbeiten
|
|
</a>
|
|
<a class="btn btn-danger btn-sm" href="/delete/{{ image.id }}">
|
|
<span class="fa fa-trash"></span>
|
|
Löschen
|
|
</a>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="pull-left">
|
|
<h1>{{ image.title }}</h1>
|
|
<div id="image-tags">
|
|
{% for tag in tags %}
|
|
<span class="tag tag-info">{{ tag.tagname }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<hr>
|
|
<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>
|
|
<hr>
|
|
|
|
<p>{{ image.created_at|parse-date|date:"dd-MM-yyyy HH:mm" }} Uhr</p>
|
|
{% if image.description|length > 0 %}
|
|
<div class="col-md7">
|
|
<p>{{ image.description|markdown-to-html|safe }}</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|