<html lang="en">
	<head>
		<script type="text/javascript">
			global_token='<%=TOKEN%>';
		</script>

		<%=INCLUDE:HEAD_META%>

		<title>NSClient++</title>

		<script type="text/javascript" src="/static/js/index.js" defer="defer"></script>
		</script>
	</head>
	<body>
		<div class="container">

			<nav class="navbar navbar-default" 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-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"/>
							<span class="icon-bar"/>
							<span class="icon-bar"/>
						</button>
						<a class="navbar-brand active" href="/index.html<%=TOKEN_TAG%>">NSClient++</a>
					</div>

					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li>
								<a href="/modules.html<%=TOKEN_TAG%>">Modules</a>
							</li>
							<li>
								<a href="/settings.html<%=TOKEN_TAG%>"><span class="label label-danger" data-bind="visible: nscp_status().settings().has_changed"><span class="glyphicon glyphicon-warning-sign"></span></span> Settings</a>
							</li>
							<li>
								<a href="/queries.html<%=TOKEN_TAG%>">Queries</a>
							</li>
							<li>
								<a href="/log.html<%=TOKEN_TAG%>"><span class="label label-danger" data-bind="visible: nscp_status().has_issues"><span class="glyphicon glyphicon-warning-sign"></span></span> Log</a>
							</li>
							<li>
								<a href="/console.html<%=TOKEN_TAG%>">Console</a>
							</li>
						</ul>
						<ul class="nav navbar-nav navbar-right">
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-globe"></span> Help</a>
								<ul class="dropdown-menu">
							<li>
										<a href="http://www.nsclient.org"><span class="glyphicon glyphicon-globe"></span> NSClient++ Website</a>
										<a href="http://docs.nsclient.org"><span class="glyphicon glyphicon-globe"></span> NSClient++ online Help</a>
									</li>
								</ul>
							</li>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-repeat"></span> Restart <b class="caret"></b></a>
								<ul class="dropdown-menu">
									<li>
										<a data-bind="click: nscp_status().restart"><span class="glyphicon glyphicon-repeat"></span> Restart NSClient++</a>
									</li>
								</ul>
							</li>
							<li>
								<a class="glyphicon glyphicon-log-out" data-bind="click: $root.nscp_status().logout"></a>
							</li>
						</ul>
					</div>
				</div>
			</nav>

			<%=INCLUDE:DIALOGS%>

			<!-- index page -->

			
			<div class="panel panel-primary" data-bind="visible: nscp_status().is_loggedin()">
				<div class="panel-heading clearfix">
					<h3 class="panel-title pull-left">Welcome to NSClient++</h3>
				</div>
				<div class="panel-body">
					<p>
						This is the front end for NSCLient++.
						Here you can configure NSClient++, runt queries, see the log, etc etc.<br/>
						Use the tabs above to explore NSClient++.
					</p>
					<div class="list-group">
						<div class="list-group-item">
							<h4 class="list-group-item-heading">Modules</h4>
							<p>Use this tab to show load and unload modules as well as change configuration from a module perspective.</p>
						</div>
						<div class="list-group-item">
							<h4 class="list-group-item-heading">Settings</h4>
							<p>Here you can browse the settings tree and change settings in a easy way.</p>
						</div>
						<div class="list-group-item">
							<h4 class="list-group-item-heading">Queries</h4>
							<p>See all queries, get help and even try them out in the nifty online query runner.</p>
						</div>
						<div class="list-group-item">
							<h4 class="list-group-item-heading">Log</h4>
							<p>Where you can see the NSCLient++ log.</p>
						</div>
						<div class="list-group-item">
							<h4 class="list-group-item-heading">Console</h4>
							<p>The WEB version of the infamous "nsclient++ /test" mode.</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>