author | ymh <ymh.work@gmail.com> |
Tue, 03 Jul 2018 18:04:14 +0200 | |
changeset 15 | 37c39e71b944 |
parent 12 | 902a14596a56 |
permissions | -rw-r--r-- |
12
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
1 |
{% load notifications_tags %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
2 |
{% load iconolab_tags %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
3 |
{% load staticfiles %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
4 |
|
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
5 |
<header> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
6 |
<section id="topnav"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
7 |
<nav class="navbar navbar-default"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
8 |
<div class="{% container_class %}"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
9 |
<div class="navbar-header"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
10 |
{# {% if not homepage %} #} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
11 |
<a class="navbar-brand" href="{% url 'home' %}"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
12 |
<img src="{% static 'iconolab/img/iconolab.png' %}" alt="Iconolab" height="20"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
13 |
</a> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
14 |
{# {% endif %} #} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
15 |
</div> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
16 |
<div id="navbar" class="navbar-collapse collapse"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
17 |
<ul class="nav navbar-nav"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
18 |
<li><a href="{% url 'iconolab_help' %}">Le projet</a></li> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
19 |
{% if collection_name %}<li><a href="{% url 'collection_home' collection_name %}">Contribuer</a></li>{% endif %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
20 |
</ul> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
21 |
{% include "partials/header_search_form.html"%} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
22 |
<a class="navbar-brand" href="https://projet-episteme.org/" target="_blank" rel="noopener noreferrer"> |
15
37c39e71b944
Add the ANR logo + better use a css file instead of style attribute
ymh <ymh.work@gmail.com>
parents:
12
diff
changeset
|
23 |
<img src="{% static 'iconolab_episteme/img/logo_episteme.png' %}" alt="Episteme" title="Episteme" height="25" id="header-episteme" > |
12
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
24 |
</a> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
25 |
<ul class="nav navbar-nav navbar-right"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
26 |
{% if request.user.is_authenticated %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
27 |
{% notifications_unread as unread_count %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
28 |
<li><a href="{% url 'user_home' request.user.username %}" title="{{request.user.username}}: Mon espace - {{ unread_count }} notification(s)"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
29 |
Mon espace <span class="badge {% if unread_count %}badge-warning{% endif %}"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
30 |
{{ unread_count }} <i class="fa fa-envelope-o" aria-hidden="true"></i> </span> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
31 |
</a></li> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
32 |
<li><a href="{% url 'account:logout' %}">Déconnexion</a></li> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
33 |
{% else %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
34 |
<li><a href="{% url 'account:register' %}">Créer un compte</a></li> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
35 |
<li><a href="{% url 'account:login' %}?next={{ request.path | urlencode }}">Connexion</a></li> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
36 |
{% endif %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
37 |
</ul> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
38 |
</div><!--/.nav-collapse --> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
39 |
</div><!--/.container-fluid --> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
40 |
</nav> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
41 |
</section> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
42 |
</header> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
43 |
|
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
44 |
<div class="{% container_class %}"> |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
45 |
{% include "partials/header_breadcrumbs.html" %} |
902a14596a56
Adding specific elements in header and footer for iconolab-episteme project
Riwad Salim
parents:
diff
changeset
|
46 |
</div> |