prieto 8 years ago
parent
commit
35f543074b
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      plugins/webui/templates/base.html

+ 6
- 6
plugins/webui/templates/base.html View File

1
 <!doctype html>
1
 <!doctype html>
2
-<!-- {% set not_connected = client.is_anonymous() %} -->
2
+{% set not_connected = false %> <!-- client.is_anonymous() %} -->
3
 
3
 
4
 <html lang="en">
4
 <html lang="en">
5
 <head>
5
 <head>
34
             <li><a href="list_classes">All types</a></li>
34
             <li><a href="list_classes">All types</a></li>
35
           </ul>
35
           </ul>
36
           <ul class="nav navbar-nav navbar-right">
36
           <ul class="nav navbar-nav navbar-right">
37
-             <!--  {% if not_connected %} -->
38
-              <!--   <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link disabled">Back-end</a></li> -->
39
-              <!--  <li id="signin-nav"><a href="signin">Sign In</a></li> -->
40
-             <!-- {% else %} -->
37
+             {% if not_connected %}
38
+                <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link disabled">Back-end</a></li> 
39
+                <li id="signin-nav"><a href="signin">Sign In</a></li> -->
40
+             {% else %}
41
                 <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link">Back-end</a></li>
41
                 <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link">Back-end</a></li>
42
                 <li id="signout-nav"><a href="signout">Logout</a>
42
                 <li id="signout-nav"><a href="signout">Logout</a>
43
-              <!-- {% endif %} -->
43
+             {% endif %}
44
           </ul>
44
           </ul>
45
         </div><!--/.nav-collapse -->
45
         </div><!--/.nav-collapse -->
46
       </div>
46
       </div>

Loading…
Cancel
Save