Template source: core/nav_menu.html

{% load i18n %}

<!-- Main menu left -->
<div class="sf-main-menu">
  <div class="sf-menu-header-bar"></div>
  <div class="sf-menu-content">
    <ul>
      {% url "portal:frontpage" as frontpage_url %}
      <li {% if request.path == frontpage_url %}class="active"{% endif %}>
        <a href='{{ frontpage_url }}'>{% trans "Home" %}</a>
      </li>
      {% url 'accounts:view_profile' request.user.username as dashboard_url %}
      <li {% if request.path == dashboard_url %}class="active"{% endif %}>
        {% if request.user.is_authenticated %}
          <a href="{{ dashboard_url }}">{% trans "My Dashboard" %}</a>
        {% endif %}
      </li>
      {% if can_view_books_list %}
      {% url 'portal:list_books' as books_url %}
      <li {% if request.path == books_url %}class="active"{% endif %}>
          <a href="{{ books_url }}">{% trans "Books" %}</a>
      </li>
      {% endif %}

      {% if can_view_groups_list %}
      {% url 'portal:list_groups' as groups_url %}
      <li {% if request.path == groups_url %}class="active"{% endif %}>
          <a href="{{ groups_url }}">{% trans "Groups" %}</a>
      </li>
      {% endif %}

      {% if can_view_user_list %}
      {% url 'portal:list_people' as people_url %}
      <li {% if request.path == people_url %}class="active"{% endif %}>
          <a href="{{ people_url }}">{% trans "People" %}</a>
      </li>
      {% endif %}
    </ul>

    {% if user.is_superuser %}
    <ul id="collapsed-admin-menu">
      {% url 'control_center:frontpage' as cc_frontpage_url %}
      <li {% if request.path == cc_frontpage_url %}class="active"{% endif %}>
        <a href="{% url 'control_center:frontpage' %}">{% trans "Control Center Home" %}</a>
      </li>
      <li data-menu="settings">
        <a href="{% url 'control_center:settings' %}#site-description">{% trans "Admin Settings" %}</a>
      </li>
      <li data-menu="people">
        <a href="{% url 'control_center:settings' %}#list-of-people">{% trans "Admin People" %}</a>
      </li>
      <li data-menu="books">
        <a href="{% url 'control_center:settings' %}#list-of-books">{% trans "Admin Books" %}</a>
      </li>
      <li data-menu="groups">
        <a href="{% url 'control_center:settings' %}#list-of-groups">{% trans "Admin Groups" %}</a>
      </li>
      <li data-menu="roles">
        <a href="{% url 'control_center:settings' %}#list-of-roles">{% trans "Admin Roles" %}</a>
      </li>
    </ul>
    {% endif %}
  </div>
</div>