/
base.html
103 lines (83 loc) · 3.38 KB
/
base.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
{% extends "base_content_page.html" %}
{% load captureas %}
{% block title_base %}
• Tutoriels
{% endblock %}
{% block mobile_title %}
Tutoriels
{% endblock %}
{% block breadcrumb_base %}
{% if user in tutorial.authors.all %}
<li><a href="{% url "zds.member.views.tutorials" %}">Mes tutoriels</a></li>
{% else %}
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="{% url "zds.tutorial.views.index" %}" itemprop="url">
<span itemprop="title">Tutoriels</span>
</a>
</li>
{% endif %}
{% endblock %}
{% block menu_tutorial %}
current
{% endblock %}
{% block sidebar %}
<aside class="sidebar summary mobile-menu-hide">
{% block sidebar_new %}{% endblock %}
{% captureas sidebaractions %}
{% block sidebar_actions %}{% endblock %}
{% endcaptureas %}
{% if sidebaractions %}
<div class="mobile-menu-bloc mobile-all-links mobile-show-ico" data-title="Actions">
<h3>Actions</h3>
<ul>
{{ sidebaractions|safe }}
</ul>
</div>
{% endif %}
{% block sidebar_blocks %}{% endblock %}
{% if tutorial %}
<div class="mobile-menu-bloc mobile-all-links mobile-show-ico" data-title="Télécharger">
<h3>Télécharger</h3>
<ul>
{% if tutorial.on_line %}
{% if perms.tutorial.change_tutorial %}
{% if tutorial.have_markdown %}
<li>
<a href="{% url "zds.tutorial.views.download_markdown" %}?tutoriel={{ tutorial.pk }}" class="ico-after download blue">
Markdown
</a>
</li>
{% endif %}
{% endif %}
{% if tutorial.have_html %}
<li>
<a href="{% url "zds.tutorial.views.download_html" %}?tutoriel={{ tutorial.pk }}" class="ico-after download blue">
HTML
</a>
</li>
{% endif %}
{% if tutorial.have_pdf %}
<li>
<a href="{% url "zds.tutorial.views.download_pdf" %}?tutoriel={{ tutorial.pk }}" class="ico-after download blue">
PDF
</a>
</li>
{% endif %}
{% if tutorial.have_epub %}
<li>
<a href="{% url "zds.tutorial.views.download_epub" %}?tutoriel={{ tutorial.pk }}" class="ico-after download blue">
EPUB
</a>
</li>
{% endif %}
{% endif %}
<li>
<a href="{% url "zds.tutorial.views.download" %}?tutoriel={{ tutorial.pk }}" class="ico-after download blue">
Archive
</a>
</li>
</ul>
</div>
{% endif %}
</aside>
{% endblock %}