66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="btn-group pull-right clearfix" 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>
|
|
Neuer
|
|
</a>
|
|
|
|
<a class="btn btn-secondary" href="/">
|
|
<span class="fa fa-home"></span>
|
|
Gallerie
|
|
</a>
|
|
|
|
{% if prev-image %}
|
|
<a class="btn btn-secondary" href="/show/{{ prev-image.id }}">
|
|
{% else %}
|
|
<a class="btn btn-secondary disabled" href="#">
|
|
{% endif %}
|
|
Älter
|
|
<span class="fa fa-arrow-right"></span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="pull-left clearfix">
|
|
<h1>{{ image.title }}</h1>
|
|
<div id="image-tags">
|
|
{% for tag in tags %}
|
|
<span class="badge badge-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>
|
|
<div class="btn-group pull-right clearfix" 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>
|
|
|
|
<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 %}
|