{% load static %}
{% load i18n %}




<div class="sidebar-logo">      
    <a href="{% url 'app_home:private' %}">
      {% if LOGO_SIZE > 0 %}<IMG src="/logo/logo.png" width="{{ LOGO_SIZE }}"></IMG>
      {% else %}<i class="fa fa-lg fa-home fa-1x"></i>
      {% endif %}    
      &nbsp; {{ GLOBAL_APPNAME|default:"Cavaliba" }} 
      <span class="badge text-bg-danger">{{ SIDEBAR_ENV}}</span>
      
    </a>
</div>


{% for section in sidebar %}
    <li class="sidebar-header">
       {{ section.0 }}
    </li>

    {% for entry in section.1 %}
    {% if entry.is_allowed %}
    <li class="sidebar-item">
        <a class="sidebar-link" href="{{ entry.url }}">
        <i class="fa {{ entry.icon }} fa-fw pe-2"></i>
        {{ entry.displayname }} 
        </a>
    </li>
    {% endif %}
    {% endfor %}

{% endfor %}

