-
Notifications
You must be signed in to change notification settings - Fork 162
/
index.html
141 lines (119 loc) · 4.51 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{% extends "article/index.html" %}
{% block title_base %}
• Articles
{% endblock %}
{% block breadcrumb_base %}
<li><a href="{% url "zds.member.views.articles" %}">Mes articles</a></li>
{% endblock %}
{% block breadcrumb %}
{% if request.GET.type == "public" %}
<li>Publiés</li>
{% elif request.GET.type == "validate" %}
<li>En validation</li>
{% elif request.GET.type == "draft" %}
<li>Brouillons</li>
{% else %}
<li>Tous mes articles</li>
{% endif %}
{% endblock %}
{% block title %}
Mes Articles
{% if request.GET.type == "public" %}
/ Publiés
{% elif request.GET.type == "validate" %}
/ En validation
{% elif request.GET.type == "draft" %}
/ Brouillons
{% endif %}
{% if sort == "abc" %}
/ Par ordre alphabétique
{% elif sort == "creation" %}
/ Par date de création
{% elif sort == "modification" %}
/ Par date de dernière modification
{% endif %}
{% endblock %}
{% block headline %}
Mes Articles
{% if request.GET.type == "public" %}
/ Publiés
{% elif request.GET.type == "validate" %}
/ En validation
{% elif request.GET.type == "draft" %}
/ Brouillons
{% endif %}
{% if sort == "abc" %}
/ Par ordre alphabétique
{% elif sort == "creation" %}
/ Par date de création
{% elif sort == "modification" %}
/ Par date de dernière modification
{% endif %}
{% endblock %}
{% block sidebar %}
<aside class="sidebar mobile-menu-hide">
<a href="{% url "zds.article.views.new" %}" class="ico-after more blue new-btn">
Nouvel article
</a>
<div class="mobile-menu-bloc mobile-all-links" data-title="Filtres">
<h3>Filtres</h3>
<ul>
<li>
<a href="{% url "zds.member.views.articles" %}?{% if sort %}sort={{ sort }}&{% endif %}type=public" class="ico-after tick green {% if request.GET.type == "public" %}unread{% endif %}">
Publiés
</a>
</li>
<li>
<a href="{% url "zds.member.views.articles" %}?{% if sort %}sort={{ sort }}&{% endif %}type=validate" class="ico-after tick {% if request.GET.type == "validate" %}unread{% endif %}">
En validation
</a>
</li>
<li>
<a href="{% url "zds.member.views.articles" %}?{% if sort %}sort={{ sort }}&{% endif %}type=draft" class="ico-after edit {% if request.GET.type == "draft" %}unread{% endif %}">
Brouillons
</a>
</li>
{% if request.GET.type %}
<li>
<a href="{% url "zds.member.views.articles" %}{% if sort %}?sort={{ sort }}{% endif %}" class="ico-after cross">
Annuler le filtre
</a>
</li>
{% endif %}
</ul>
</div>
<div class="mobile-menu-bloc mobile-all-links" data-title="Trier">
<h3>Trier</h3>
<ul>
<li>
<a href="{% url "zds.member.views.articles" %}?sort=abc{% if type %}&type={{ type }}{% endif %}" class="ico-after gear {% if sort == "abc" %}unread{% endif %}">
Par ordre alphabétique
</a>
</li>
<li>
<a href="{% url "zds.member.views.articles" %}?sort=creation{% if type %}&type={{ type }}{% endif %}" class="ico-after gear {% if sort == "creation" %}unread{% endif %}">
Par date de création
</a>
</li>
<li>
<a href="{% url "zds.member.views.articles" %}?sort=modification{% if type %}&type={{ type }}{% endif %}" class="ico-after gear {% if sort == "modification" %}unread{% endif %}">
Par date de dernière modification
</a>
</li>
</ul>
</div>
</aside>
{% 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 %}