Plume/templates/medias/index.html.tera

32 lines
957 B
Plaintext
Raw Normal View History

2018-09-02 20:55:42 +00:00
{% extends "base" %}
{% import "macros" as macros %}
{% block title %}
2018-09-03 12:28:20 +00:00
{{ "Your media" | _ }}
2018-09-02 20:55:42 +00:00
{% endblock title %}
{% block content %}
2018-09-03 12:28:20 +00:00
<h1>{{ "Your media" | _ }}</h1>
2018-09-02 20:55:42 +00:00
<div>
<a href="/medias/new" class="inline-block button">Upload</a>
</div>
<section>
{% if medias | length < 1 %}
<p>{{ "You don't have any media yet." | _ }}</p>
{% endif %}
<div class="list">
{% for media in medias %}
<div class="card flex">
{{ media.html_preview | safe }}
<main class="grow">
<p><a href="/medias/{{ media.id }}">{{ media.alt_text }}</a></p>
</main>
2018-09-03 12:28:20 +00:00
<a href="/medias/{{ media.id }}/delete">{{ "Delete" | _ }}</a>
2018-09-02 20:55:42 +00:00
</div>
{% endfor %}
</div>
2018-09-03 12:28:20 +00:00
{# TODO: macros::paginate(page=page, total=n_pages) #}
2018-09-02 20:55:42 +00:00
</section>
{% endblock content %}