ztncui/views/controller_layout.pug
2017-12-19 14:52:06 +08:00

39 lines
1.4 KiB
Plaintext

//-
ztncui - ZeroTier network controller UI
Copyright (C) 2017 Key Networks (https://key-networks.com)
Licensed under GPLv3 - see LICENSE for details.
extends head_layout
block body_content
nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
.navbar-header
button.navbar-toggle(type='button' data-toggle='collapse' data-target='#BarNav')
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='https://key-networks.com' target='_blank')
img(src='/images/key-logo.svg' alt='Key Networks logo' height='25px' width='25px' style='display: inline')
| Key Networks
.collapse.navbar-collapse(id='BarNav')
ul.nav.navbar-nav
li(class=(page === 'controller_home'? 'active' : ''))
a(href='/controller') Home
li(class=(page === 'users'? 'active' : ''))
a(href='/users') Users
li(class=(page === 'networks'? 'active' : ''))
a(href='/controller/networks') Networks
li(class=(page === 'add_network'? 'active' : ''))
a(href='/controller/network/create') Add network
ul.nav.navbar-nav.navbar-right
li
a(href='/logout')
span.glyphicon.glyphicon-log-out
| Logout
.container(style='margin-top:50px')
.row
.col-sm-12
block content