+<!--
+Copyright 2019 EveryUP srl
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
</li>
{% if user.is_admin %}
<li class="header">ADMIN</li>
+ {% url "projects:projects_list" as proj_list_url %}
+ <li {% if request.get_full_path == proj_list_url %} class="active" {% endif %}>
+ <a href='{% url "projects:projects_list" %}'>
+ <i class="fas fa-folder"></i> <span>Projects</span>
+ </a>
+ </li>
{% url "users:list" as user_list_url %}
<li {% if request.get_full_path == user_list_url %} class="active" {% endif %}>
<a href='{% url "users:list" %}'>
<i class="fas fa-users"></i> <span>Users</span>
</a>
</li>
- {% url "projects:projects_list" as proj_list_url %}
- <li {% if request.get_full_path == proj_list_url %} class="active" {% endif %}>
- <a href='{% url "projects:projects_list" %}'>
- <i class="fas fa-folder"></i> <span>Projects</span>
+ {% url "roles:list" as role_list_url %}
+ <li {% if request.get_full_path == role_list_url %} class="active" {% endif %}>
+ <a href='{% url "roles:list" %}'>
+ <i class="fas fa-user-tag"></i> <span>Roles</span>
</a>
</li>
+
{% endif %}
</ul>
</section>