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