ztncui/views/users_layout.pug

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-12-13 22:05:07 +08:00
//-
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
2017-12-19 14:52:06 +08:00
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
2017-12-13 22:05:07 +08:00
.collapse.navbar-collapse(id='BarNav')
ul.nav.navbar-nav
li(class=(page === 'home'? 'active' : ''))
a(href='/controller') Home
li(class=(page === 'users'? 'active' : ''))
a(href='/users') Users
li(class=(page === 'create_user'? 'active' : ''))
a(href='/users/create') Create user
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
if error
b #{error}
else
h1= title
block users_content