Commit | Line | Data |
---|---|---|
d15017b2 CR |
1 | {% extends "container_base.html" %} |
2 | ||
3 | {% block contenu %} | |
92c7413b | 4 | <div class="demi-gauche clearfix"> |
37c3ba94 | 5 | <div id="actualites" class="box"> |
588d6b93 | 6 | <h4>Actualités</h4> |
37c3ba94 | 7 | <a id="rss-actualites" href="/rss/actualites"><img src="/media/img/feed.png" /></a> |
d15017b2 | 8 | |
588d6b93 | 9 | <ul class="liste-de-l-accueil"> |
10 | {% comment %}<!-- dans la vue, cloner avoirListeActualitesAccueil -->{% endcomment %} | |
11 | {% for article in articles %} | |
12 | <li class="clearfix"> | |
588d6b93 | 13 | <span class="la-date">{{ article.date|date:"d F Y" }}</span> |
14 | <a href="{{ article.url }}" class="le-titre">{{ article.titre }}</a> | |
ccbc4363 | 15 | {% if article.source %} |
16 | <span class="la-date">source: {{ article.source.nom }}</span> | |
17 | {% endif %} | |
588d6b93 | 18 | {% comment %} |
19 | <span class="le-resume">{{ article.texte }} - <a href="{{ article.url }}">Lire</a></span> | |
20 | {% endcomment %} | |
21 | </li> | |
22 | {% endfor %} | |
23 | </ul> | |
24 | </div> | |
25 | <div class="box"> | |
26 | <h4>Chercheurs</h4> | |
27 | <ul class="sous-menu"> | |
f8c16b3d | 28 | <li><a href="{% url chercheurs.views.index %}">Répertoire</a></li> |
588d6b93 | 29 | <li><a href="{% url chercheurs.views.inscription %}">Inscription</a></li> |
9af73c99 AJ |
30 | {% if user_chercheur %} |
31 | <li><a href="{% url chercheurs.views.perso %}">Espace chercheur</a></li> | |
32 | {% endif %} | |
588d6b93 | 33 | </ul> |
34 | <ul class="liste-de-l-accueil"> | |
35 | {% for chercheur in chercheurs %} | |
36 | <li class="clearfix"> | |
da091176 | 37 | <a href="{% url chercheurs.views.retrieve chercheur.id %}" class="le-titre">{{ chercheur }}</a> |
a955bdb8 | 38 | {% if chercheurs.disciplines %}<span class="la-date">Disciplines : {{ chercheur.discipline }}</span>{% endif %} |
588d6b93 | 39 | </li> |
40 | {% endfor %} | |
41 | </ul> | |
42 | </div> | |
92c7413b CR |
43 | </div> |
44 | ||
45 | ||
46 | <div class="demi-droite clearfix"> | |
79b400f0 | 47 | <div id="agenda" class="box"> |
588d6b93 | 48 | <h4>Agenda</h4> |
65fae967 | 49 | {% if not erreur_caldav %} |
79b400f0 | 50 | <a id="rss-agenda" href="/rss/agenda"><img src="/media/img/feed.png" /></a> |
588d6b93 | 51 | <ul class="sous-menu"> |
52 | <li><a href="{% url savoirs.views.evenement_ajout %}">Soumettre un événement</a></li> | |
53 | <li><a href="{{ caldav_url }}">S'abonner</a></li> | |
588d6b93 | 54 | </ul> |
55 | <ul class="liste-de-l-accueil"> | |
56 | {% for event in events %} | |
57 | <li> | |
58 | <span class="la-date">{{ event.dtstart.value|date:"Y-m-d" }} | |
59 | {{ event.dtstart.value|date:"H:i" }}</span> | |
60 | <a href="{% url savoirs.views.evenement event.uid.value %}" | |
61 | class="le-titre">{{ event.summary.value }}</a> | |
62 | <span class="le-resume">{{ event.description.value }}</span> | |
63 | </li> | |
64 | {% endfor %} | |
65 | </ul> | |
65fae967 | 66 | {% else %} |
67 | <ul><li>{{ erreur_caldav }}</li></ul> | |
68 | {% endif %} | |
69 | ||
588d6b93 | 70 | </div> |
6e001443 | 71 | <div class="box"> |
72 | <h4>Sites</h4> | |
73 | <ul class="sous-menu"> | |
bab65667 | 74 | <li><a href="{% url sitotheque.views.index %}">Sitothèque</a></li> |
6e001443 | 75 | </ul> |
76 | <ul class="liste-de-l-accueil"> | |
77 | {% for site in sites %} | |
78 | <li class="clearfix"> | |
bab65667 | 79 | <a href="{% url sitotheque.views.retrieve site.id %}" class="le-titre">{{ site }}</a> |
c08cba47 | 80 | <a href="{{ site.url }}" class="le-titre">{{ site.url }}</a> |
a955bdb8 | 81 | {% if site.discipline.all.count %}<span class="la-date">Disciplines : {{ site.discipline.all|join:", " }}</span>{% endif %} |
6e001443 | 82 | </li> |
83 | {% endfor %} | |
84 | </ul> | |
85 | </div> | |
92c7413b | 86 | </div> |
d15017b2 | 87 | {% endblock %} |