2018-09-02 20:55:42 +00:00
|
|
|
{% extends "base" %}
|
|
|
|
{% import "macros" as macros %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-09-03 12:28:20 +00:00
|
|
|
{{ "Media details" | _ }}
|
2018-09-02 20:55:42 +00:00
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ "Media details" }}</h1>
|
|
|
|
<section>
|
2018-09-03 12:28:20 +00:00
|
|
|
<a href="/medias">{{ "Go back to the gallery" | _ }}</a>
|
2018-09-02 20:55:42 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<figure class="media">
|
|
|
|
{{ media.html | safe }}
|
|
|
|
<figcaption>{{ media.alt_text }}</figcaption>
|
|
|
|
</figure>
|
2018-09-03 10:16:07 +00:00
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
{{ "Markdown code" | _ }}
|
|
|
|
<small>{{ "Copy it in your articles to insert this media." }}</small>
|
|
|
|
</p>
|
|
|
|
<code>{{ media.md }}</code>
|
|
|
|
</div>
|
2018-09-02 20:55:42 +00:00
|
|
|
<div>
|
2018-09-19 17:13:07 +00:00
|
|
|
<form class="inline" method="post" action="/medias/{{ media.id }}/avatar">
|
|
|
|
<input class="button" type="submit" value="{{ 'Use as avatar' | _ }}">
|
|
|
|
</form>
|
|
|
|
<form class="inline" method="post" action="/medias/{{ media.id }}/delete">
|
|
|
|
<input class="button" type="submit" value="{{ 'Delete' | _ }}">
|
|
|
|
</form>
|
2018-09-02 20:55:42 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock content %}
|