fix bug 823; fix bug 800
[osm/LW-UI.git] / projecthandler / template / project / osm / osm_project_left_sidebar.html
index d39a0c8..a16d86e 100644 (file)
@@ -1,3 +1,18 @@
+<!--
+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">
                     <i class="fa fa-server fa-fw"></i> <span>VIM Accounts</span>
                 </a>
             </li>
+
+            {% url "wims:list"   as  wim_list_url %}
+            <li {% if request.get_full_path == wim_list_url %} class="active" {% endif %}>
+                <a href='{% url "wims:list"   %}'>
+                    <i class="fa fa-sitemap fa-rotate-180 fa-fw"></i> <span>WIM Accounts</span>
+                </a>
+            </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>