yenu/resources/templates/detail.html

67 lines
1.6 KiB
HTML
Raw Normal View History

{% extends "layout.html" %}
{% block content %}
2017-03-28 00:19:23 +02:00
<div class="btn-group pull-right clearfix" role="group">
2017-03-21 23:35:13 +01:00
{% if next-image %}
<a class="btn btn-secondary" href="/show/{{ next-image.id }}">
{% else %}
<a class="btn btn-secondary disabled" href="#">
{% endif %}
2017-03-22 01:02:51 +01:00
<span class="fa fa-arrow-left"></span>
2017-03-28 00:19:23 +02:00
Neuer
2017-03-21 23:35:13 +01:00
</a>
2017-03-22 01:02:51 +01:00
<a class="btn btn-secondary" href="/">
<span class="fa fa-home"></span>
2017-03-28 00:19:23 +02:00
Gallerie
2017-03-22 01:02:51 +01:00
</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 %}
2017-03-28 00:19:23 +02:00
Älter
2017-03-22 01:02:51 +01:00
<span class="fa fa-arrow-right"></span>
</a>
</div>
2017-03-28 00:19:23 +02:00
<div class="pull-left clearfix">
2017-03-21 23:35:13 +01:00
<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>
2017-03-22 01:02:51 +01:00
<hr>
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>
2017-03-22 01:02:51 +01:00
<hr>
2017-03-28 00:19:23 +02:00
<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>
2017-03-22 01:02:51 +01:00
<p>{{ image.created_at|parse-date|date:"dd-MM-yyyy HH:mm" }} Uhr</p>
{% if image.description|length > 0 %}
2017-03-22 01:02:51 +01:00
<div class="col-md7">
2017-03-21 23:35:13 +01:00
<p>{{ image.description|markdown-to-html|safe }}</p>
</div>
{% endif %}
{% endblock %}