summaryrefslogtreecommitdiffstats
path: root/templates/main-menu.html
blob: 7bb030d65636a1932e73232d2a05ef12f3257061 (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
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="?do=Main">OpenSLX Admin</a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{lang_settings}}<b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li class="dropdown-header">{{lang_client}}</li>
						<li><a href="?do=News">{{lang_news}}</a></li>
						<li><a href="?do=SysConfig">{{lang_localization}}</a></li>
						<li><a href="?do=MiniLinux">bwLehrpool Mini-Linux</a></li>
						<li><a href="?do=BaseConfig">{{lang_configurationVariables}}</a></li>
						<li class="divider"></li>
						<li class="dropdown-header">{{lang_server}}</li>
						<li><a href="?do=ServerSetup">{{lang_configurationBasic}}</a></li>
						<li><a href="?do=InternetAccess">{{lang_internetAccess}}</a></li>
						<li><a href="?do=VmStore">{{lang_vmLocation}}</a></li>
						<li><a href="?do=Backup">{{lang_backup}}</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{lang_status}}<b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="?do=SystemStatus">{{lang_serverStatus}}</a></li>
						<li><a href="?do=SysLog">{{lang_clientLog}}</a></li>
						<li><a href="?do=EventLog">{{lang_eventLog}}</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="lang/{{current_lang}}/flag.png"><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}}&amp;url={{url}}"><img src="lang/{{cc}}/flag.png" alt="{{name}}"> {{name}}</a></li>
						{{/langs}}
					</ul>
				</li>
				{{#dbupdate}}
				<li><a href="api.php?do=update"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> DB-Update</span></a></li>
				{{/dbupdate}}
				{{#warning}}
				<li><a href="?do=EventLog"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> {{lang_warning}}</span></a></li>
				{{/warning}}
				{{#needsSetup}}
				<li><a href="?do=Main"><span class="slx-warning-badge badge"><span class="glyphicon glyphicon-exclamation-sign"></span> {{lang_needsSetup}}</span></a></li>
				{{/needsSetup}}
			</ul>
			<ul class="nav navbar-nav navbar-right">
				{{#user}}
				<li><a href="?do=Session&amp;action=logout&amp;token={{{token}}}"><b>{{user}}</b> ({{lang_logout}})</a></li>
				{{/user}}
				{{^user}}
				<li><a href="?do=Session&amp;action=login">{{lang_login}}</a></li>
				{{/user}}
			</ul>
		</div>
	</div>
</div>