/
index.html
53 lines (35 loc) · 1.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends "article/index.html" %}
{% block title_base %}
• Articles
{% endblock %}
{% block breadcrumb_base %}
{% if user in tutorial.authors.all %}
<li><a href="{% url "zds.member.views.articles" %}">Mes articles</a></li>
{% else %}
<li><a href="{% url "zds.article.views.index" %}">Articles</a></li>
{% endif %}
{% endblock %}
{% block title %}
Mes Articles
{% endblock %}
{% block headline %}
Mes Articles
{% endblock %}
{% block sidebar_filter %}
<li><a href="{% url "zds.member.views.articles" %}">Tous</a></li>
<li><a href="{% url "zds.member.views.articles" %}?type=public">Publiés</a></li>
<li><a href="{% url "zds.member.views.articles" %}?type=draft">Brouillons</a><li>
{% endblock %}
{% block content %}
{% if articles %}
<div class="tutorial-list">
{% for article in articles %}
{% include "article/includes/article_item.part.html" with link=article.get_absolute_url %}
{% endfor %}
</div>
{% else %}
<p>
Aucun article disponible.
</p>
{% endif %}
{% endblock %}