2 Copyright 2019 EveryUP srl
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 {% load staticfiles %}
23 {% include
"head.html" %}
25 {% block head_block %}
28 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
29 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
31 <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
32 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
36 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">-->
42 {% if request.COOKIES.collapsed_sidebar == '
1' %}
43 <body class=
"skin-purple sidebar-mini sidebar-collapse">
45 <body class=
"skin-purple hold-transition sidebar-mini">
50 <header class=
"main-header">
52 {% block logo_sidebar %}
53 {% include
"logo_sidebar.html" %}
55 <!-- Header Navbar: style can be found in header.less -->
56 <nav class=
"navbar navbar-static-top">
57 <!-- Sidebar toggle button-->
58 <a href=
"#" class=
"sidebar-toggle" data-toggle=
"push-menu" role=
"button">
59 <span class=
"sr-only">Toggle navigation
</span>
60 <span class=
"icon-bar"></span>
61 <span class=
"icon-bar"></span>
62 <span class=
"icon-bar"></span>
65 <div class=
"navbar-custom-menu">
66 <ul class=
"nav navbar-nav">
67 {% if user.get_username %}
68 <li class=
"dropdown tasks-menu">
69 <a href=
"#" class=
"dropdown-toggle" data-toggle=
"dropdown" aria-expanded=
"false">
70 <span class=
"far fa-folder-open"> </span>
71 <span>{{ user.project_name }}
</span>
72 <span class=
"fa fa-caret-down"></span>
74 <ul class=
"dropdown-menu">
75 <li class=
"header">Projects:
</li>
77 <!-- inner menu: contains the actual data -->
79 {% for p in request.session.projects %}
80 {% if p.project_name == user.project_name %}
84 <i class=
"fa fa-folder-open"></i> <span>{{ p.project_name }}
</span>
90 <a href=
"{% url 'projects:switch_project' project_id=p.project %}">
92 <i class=
"fa fa-folder"></i> <span>{{ p.project_name }}
</span>
103 <!-- User Account: style can be found in dropdown.less -->
104 <li class=
"dropdown user user-menu">
105 <a href=
"#" class=
"dropdown-toggle" data-toggle=
"dropdown">
106 <img src=
"/static/assets/img/account_circle.png" class=
"user-image" alt=
"User Image">
107 <span class=
"hidden-xs">{{ user.username }}
</span>
109 <ul class=
"dropdown-menu">
111 <li class=
"user-header">
112 <img src=
"/static/assets/img/account_circle.png" class=
"img-circle" alt=
"User Image">
113 <p id=
"user_menu_name_role">
114 {{ user.get_username }}
115 <small id=
"user_menu_role">{{ user.get_user_role_name }}
</small>
119 <li class=
"user-footer">
120 <div class=
"pull-left">
121 <a href=
"#" class=
"btn btn-default btn-flat" disabled
>Settings
</a>
123 <div class=
"pull-right">
124 <a href=
"/auth" class=
"btn btn-default btn-flat">Sign out
</a>
135 <!-- =============================================== -->
136 {% block left_sidebar %}
140 <!-- =============================================== -->
142 <!-- Content Wrapper. Contains page content -->
143 <div class=
"content-wrapper">
144 <!-- Content Header (Page header) -->
145 <section class=
"content-header">
146 <h1 id=
"title_header">
147 {% block title_header_big %}
151 {% block title_header_small %}
156 <ol id=
"breadcrumb" class=
"breadcrumb">
157 {% block breadcrumb_body %}
158 <li><a href='{% url
"home" %}'
><i class=
"fa fa-home fa-fw"></i> Home
</a></li>
163 <!-- Main content -->
164 <section id=
"main_content" class=
"content">
165 {% block content_body %}
170 {% include
"modals/error_alert.html" %}
171 </div><!-- /.content-wrapper -->
173 {% include
"footer.html" %}
181 <script src=
"/static/node_modules/jquery/dist/jquery.min.js"></script>
182 <!-- Bootstrap 3.3.7 -->
183 <script src=
"/static/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
185 <script src=
"/static/node_modules/fastclick/lib/fastclick.js"></script>
186 <!-- AdminLTE App -->
187 <script src=
"/static/node_modules/admin-lte/dist/js/adminlte.min.js"></script>
189 <script src=
"/static/node_modules/admin-lte/plugins/iCheck/icheck.min.js"></script>
191 <script src=
"/static/node_modules/admin-lte/plugins/pace/pace.min.js"></script>
193 <script src=
"/static/node_modules/moment/moment.js"></script>
195 <script src=
"/static/node_modules/bootbox/dist/bootbox.min.js"></script>
196 <!-- RDCL3D AdminLTE session storage handler -->
197 <script src=
"/static/src/adminlte_session_storage.js"></script>
199 <script src=
"/static/src/utils.js"></script>
202 $(document).ready(function () {
203 $('[
data-toggle=
"tooltip"]').tooltip()
207 {% block resource_block %}