Félix Marty
add dana
3f268e5
raw
history blame
2.21 kB
<!--
/*
* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand">
<b><%=globalBot.config.configBot.system%></b>
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a class='active' href='/bot/status'>Status</a>
</li>
<li>
<a class='active' href='/bot/builds'>View builds</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<% if (user===undefined) { %>
<li>
<a href="/login">
Admin Login
</a>
</li>
<% } else { %>
<li>
<a href="/logout">
<% if (user!==undefined) { %>
User
<%=user.username%>
<% } %>
log out
</a>
</li>
<% } %>
</ul>
<p class="navbar-text navbar-right"><small>dana-bot v<%=globalBot.version%></small>&nbsp;&nbsp;</p>
</div>
</div>
</nav>
<style>
body {
padding-top: 51px;
padding-bottom: 40px;
background-color: #eee;
}
</style>