summaryrefslogtreecommitdiffstats
path: root/templates/main-menu.html
blob: 3e3a1d90916f4abcc2c257a94729a84a7820e6c3 (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
<!-- 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=WebInterface">{{lang_webInterface}}</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=EventLog">{{lang_eventLog}}</a></li>
						<li class="divider"></li>
						<li><a href="?do=SysLog">{{lang_clientLog}}</a></li>
						<li><a href="?do=Statistics">{{lang_clientStats}}</a></li>
					</ul>
				</li>
				<li>
					<a href="?do=DozMod">{{lang_dozmod}}</a>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="lang/{{current_lang}}/flag.png" alt="{{current_lang}}"><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>
					<form method="post" action="?do=Session">
						<input type="hidden" name="token" value="{{token}}">
						<input type="hidden" name="action" value="logout">
						<b>{{user}}</b>
						<button class="btn btn-default btn-xs" type="submit">{{lang_logout}}</button>
					</form>
				</li>
				{{/user}}
				{{^user}}
				<li><a href="?do=Session&amp;action=login">{{lang_login}}</a></li>
				{{/user}}
			</ul>
		</div>
	</div>
</div>