base.html 1.95 KB
Newer Older
1
{% extends "base.html" %}
2
{% load staticfiles %}
3
{% load i18n %}
4

5
{% block title-site %}Dashboard | CIRCLE{% endblock %}
6 7 8


{% block extra_link %}
9
  {% block extra_link_2 %}{% endblock %}
10 11 12 13 14
{% endblock %}


{% block navbar-brand %}
  <a class="navbar-brand" href="{% url "dashboard.index" %}" style="padding: 10px 15px;">
15
    {% include "branding.html" %}
16 17 18 19
  </a>
{% endblock %}

{% block navbar %}
20 21 22
{% if user.is_authenticated and user.pk and not request.token_user %}
  <ul class="nav navbar-nav pull-right">
    <li class="dropdown" id="notification-button">
23
      <a href="{% url "dashboard.views.notifications" %}"
24 25 26 27 28 29
        class="dropdown-toggle" data-toggle="dropdown">
        {% trans "Notifications" %}
        {% if NEW_NOTIFICATIONS_COUNT > 0 %}
          <span class="badge badge-pulse">{{ NEW_NOTIFICATIONS_COUNT }}</span>
        {% endif %}
      </a>
30
      <ul class="dropdown-menu" id="notification-messages">
31 32 33 34
          <li>{% trans "Loading..." %}</li>
      </ul>
    </li>
  </ul>
35 36

  <a class="navbar-brand pull-right" href="{% url "logout" %}?next={% url "login" %}" style="color: white; font-size: 10px;">
37
    <i class="fa fa-sign-out"></i> {% trans "Log out" %}
38
  </a>
39
  <a class="navbar-brand pull-right" href="{% url "dashboard.views.profile-preferences" %}" style="color: white; font-size: 10px;">
40
    <i class="fa fa-user"></i>
41 42 43 44
    {% include "dashboard/_display-name.html" with user=user show_org=True %}
  </a>

  {% if user.is_superuser %}
45 46
    <a class="navbar-brand pull-right" href="/network/" style="color: white; font-size: 10px;"><i class="fa fa-globe"></i> {% trans "Network" %}</a>
    <a class="navbar-brand pull-right" href="/admin/" style="color: white; font-size: 10px;"><i class="fa fa-cogs"></i> {% trans "Admin" %}</a>
47 48
  {% endif %}
{% else %}
49
  <a class="navbar-brand pull-right" href="{% url "login" %}?next={{ request.path }}" style="color: white; font-size: 10px;"><i class="fa fa-sign-in"></i> {% trans "Log in " %}</a>
50 51 52
{% endif %}

{% endblock %}