forked from i-am-b-soto/AIRPACT-Fire-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_header.html
47 lines (38 loc) · 2.83 KB
/
_header.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
{ % load spirit_tags i18n % }
{ % load static from staticfiles % }
<header class = "header js-tabs-container" >
<a href = "/" class = "navbar-left" style = "background-color: #FFF;" >
<img id = "the_logo" class = "img-responsive" style = "height:50px; padding-top:5px;" src = "{% static '/static/media/decoration/banner_large.png' %}" >
Return to main site
</a>
{% if user.is_authenticated %}
{% has_topic_notifications user as has_notifications %}
<ul class="header-tabs">
<li><a class="header-tab-link js-tab" href="{% url "spirit:search:search" %}" data-related=".js-search-content"><i class="fa fa-search"></i></a></li><!--
--><li><a class="header-tab-link js-tab-notification{% if has_notifications %} is-highlighted{% endif %}" href="{% url "spirit:topic:notification:index" %}" data-related=".js-notifications-content"><i class="fa fa-bell"></i></a></li><!--
--><li><a class="header-tab-link js-tab" href="{% url "spirit:user:menu" %}" data-related=".js-user-content">{{ user.username }} <i class="fa fa-chevron-down"></i></a></li>
</ul>
<div class="header-tabs-content">
<div class="header-tab-content js-tab-content js-user-content">
<nav class="header-nav">
<ul class="menu">
<li><a class="menu-link" href="{% url "spirit:user:detail" pk=user.pk slug=user.st.slug %}">{% trans "Profile" %}</a></li>
<li><a class="menu-link" href="{% url "spirit:topic:index-active" %}">{% trans "Topics" %}</a></li>
<li><a class="menu-link" href="{% url "spirit:topic:unread:index" %}">{% trans "Unread topics" %}</a></li>
<li><a class="menu-link" href="{% url "spirit:topic:private:index" %}">{% trans "Private topics" %}</a></li>
{% if user.st.is_administrator %}
<li><a class="menu-link" href="{% url "spirit:admin:index" %}">{% trans "Admin" %}</a></li>
{% endif %}
<li><a class="menu-link js-post" href="{% url "spirit:user:auth:logout" %}?next={% firstof request.get_full_path|urlencode '/' %}">{% trans "Log out" %}</a></li>
</ul>
</nav>
</div>
<div class="header-tab-content js-tab-content js-notifications-content"></div>
<div class="header-tab-content js-tab-content js-search-content">
{% render_search_form %}
</div>
</div>
{% else %}
<a class="header-link" href="{% url "spirit:user:auth:login" %}?next={% firstof request.get_full_path|urlencode '/' %}">{% trans "Log in" %}</a>
{% endif %}
</header>