Plume/templates/users/dashboard.html.tera

42 lines
1.2 KiB
Text
Raw Normal View History

2018-06-10 17:55:08 +00:00
{% extends "base" %}
{% import "macros" as macros %}
{% block title %}
2018-06-17 15:26:15 +00:00
{{ "Dashboard" | _ }}
2018-06-10 17:55:08 +00:00
{% endblock title %}
{% block content %}
2018-06-17 15:26:15 +00:00
<h1>{{ "Your Dashboard" | _ }}</h1>
2018-06-10 17:55:08 +00:00
<section>
2018-06-17 15:26:15 +00:00
<h2>{{ "Your Blogs" | _ }}</h2>
2018-06-10 17:55:08 +00:00
{% if blogs | length < 1 %}
2018-06-17 15:26:15 +00:00
<p>{{ "You don't have any blog yet. Create your own, or ask to join one." | _ }}</p>
2018-06-10 17:55:08 +00:00
{% endif %}
2018-08-18 10:49:06 +00:00
<div class="cards">
2018-06-10 17:55:08 +00:00
{% for blog in blogs %}
<div class="card">
<h3><a href="/~/{{ blog.actor_id }}/">{{ blog.title }}</a></h3>
</div>
{% endfor %}
</div>
2018-08-18 10:49:06 +00:00
<a class="button" href="/blogs/new">{{ "Start a new blog" | _ }}</a>
2018-06-10 17:55:08 +00:00
</section>
2018-09-03 11:24:34 +00:00
{% if drafts | length > 0 %}
<section>
<h2>{{ "Your Drafts" | _ }}</h2>
<div class="cards">
{% for draft in drafts %}
{{ macros::post_card(article=draft) }}
{% endfor %}
</div>
</section>
{% endif %}
2018-09-03 11:24:34 +00:00
<section>
<h2>{{ "Your media" | _ }}</h2>
<a class="button" href="/medias">{{ "Go to your gallery" | _ }}</a>
</section>
2018-06-10 17:55:08 +00:00
{% endblock content %}