blob: b14d1ace651a80813d8e0f0cc4f8559c6a0e9351 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<div class="slx-topbar">
<div>
{{#dbupdate}}
<a href="api.php?do=update"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> DB-Update</span></a>
{{/dbupdate}}
{{#warning}}
<a href="?do=EventLog"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> {{lang_warning}}</span></a>
{{/warning}}
{{#needsSetup}}
<a href="?do=Main"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> {{lang_needsSetup}}</span></a>
{{/needsSetup}}
</div>
</div>
<div class="sidebar-bg"></div>
<nav class="navbar navbar-inverse sidebar" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-sidebar-navbar-collapse-1">
<span class="sr-only">{{lang_toggleNavigation}}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="?do=Main">OpenSLX</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
<ul class="nav navbar-nav">
{{#categories}}
<li class="dropdown">
<a href="#" class="dropdown-toggle slx-nopointer" data-toggle="dropdown"><span class="sidebar-visible-inline {{icon}}"></span> {{displayName}}<b class="caret sidebar-hide"></b></a>
<ul class="dropdown-menu sidebar-visible-block" role="menu">
{{#modules}}
<li class="{{className}}"><a href="?do={{identifier}}">{{displayName}}</a></li>
{{/modules}}
</ul>
</li>
{{/categories}}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="lang/{{current_lang}}/flag.png" alt="{{current_lang}}">
<span class="sidebar-visible-inline">{{lang_language}}</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="?do=Translation">{{lang_translations}}</a></li>
<li class="dropdown-header">{{lang_language}}</li>
{{#langs}}
<li><a href="?lang={{cc}}&url={{url}}"><img src="lang/{{cc}}/flag.png" alt="{{name}}"> {{name}}</a></li>
{{/langs}}
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right visible-xs visible-lg">
{{#user}}
<li><span>{{lang_loggedInPrefix}} {{user}} {{lang_loggedInSuffix}}</span></li>
<li>
<form id="logoutForm" method="post" action="?do=Session">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="logout">
<button class="btn btn-default btn-xs" type="submit">{{lang_logout}}</button>
</form>
</li>
{{/user}}
{{^user}}
<li><a href="?do=Session&action=login">{{lang_login}}</a></li>
{{/user}}
</ul>
<ul class="nav navbar-nav navbar-right visible-sm visible-md" style="margin-top:10px">
{{#user}}
<ul class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{{user}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Settings</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onclick="$('#logoutForm').submit();">{{lang_logout}}</a></li>
</ul>
</ul>
{{/user}}
{{^user}}
<a type="button" href="?do=Session&action=login" class="btn btn-default">{{lang_login}}</a>
{{/user}}
</ul>
</div>
</div>
</nav>
|