2016-08-14 13:37:26 +02:00
|
|
|
.navbar.navbar-default.navbar-fixed-top
|
|
|
|
.container-fluid
|
|
|
|
.navbar-header
|
|
|
|
a.navbar-brand(ui-sref="app.index")
|
|
|
|
img(src="/favicon.ico")
|
|
|
|
| Warehost
|
|
|
|
button.navbar-toggle.collapsed(ng-click="toggleOpen()")
|
|
|
|
span.sr-only Toggle navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
.navbar-collapse.collapse(uib-collapse="!isOpen")
|
2016-09-03 13:24:54 +02:00
|
|
|
ui.nav.navbar-nav(ui-view="menu")
|
2016-08-14 13:37:26 +02:00
|
|
|
ui.nav.navbar-nav.navbar-right(ng-if="session.login.active")
|
2016-09-03 13:24:54 +02:00
|
|
|
li.dropdown(ng-if="modules.length>0")
|
|
|
|
a.dropdown-toggle(data-toggle="dropdown",role="button",aria-haspopup="true",aria-expanded="false")
|
|
|
|
span.glyphicon.glyphicon-th-large
|
|
|
|
| Apps
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu
|
2016-09-03 16:30:05 +02:00
|
|
|
li(ng-if="modules.indexOf('web')>-1")
|
|
|
|
a(ui-sref="app.web.index") Websites
|
|
|
|
li(ng-if="modules.indexOf('host')>-1")
|
|
|
|
a(ui-sref="app.host.index") Hosting
|
2016-09-03 13:24:54 +02:00
|
|
|
li(ng-if="modules.indexOf('test')>-1")
|
2016-09-03 16:30:05 +02:00
|
|
|
a Testing
|
2016-09-03 13:24:54 +02:00
|
|
|
li.dropdown
|
|
|
|
a.dropdown-toggle(data-toggle="dropdown",role="button",aria-haspopup="true",aria-expanded="false")
|
|
|
|
span.glyphicon.glyphicon-user
|
|
|
|
| {{session.login.username}}
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.L.invite",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-send
|
|
|
|
| Invites
|
|
|
|
li(ng-if="session.login.superadmin")
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.A.user",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-tasks
|
|
|
|
| User Managment
|
|
|
|
li
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.L.setting",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-cog
|
|
|
|
| Settings
|
|
|
|
li
|
2016-09-03 16:30:05 +02:00
|
|
|
a(href="",ng-click="logout()")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-log-out
|
|
|
|
| Logout
|
2016-08-17 22:35:25 +02:00
|
|
|
form.navbar-form.navbar-right(ng-if="!session.login.active",ng-submit="login()")
|
|
|
|
.form-group(ng-class="{'has-error': (error.fields.indexOf('username') >= 0)}")
|
|
|
|
input.form-control(ng-model="obj.username",placeholder="Username",pattern=".{3,}")
|
|
|
|
.form-group(ng-class="{'has-error': (error.fields.indexOf('password') >= 0)}")
|
|
|
|
.input-group
|
|
|
|
input.form-control(type="password",ng-model="obj.password",placeholder="Password")
|
|
|
|
.input-group-btn
|
|
|
|
button.btn.btn-default(type="submit")
|
|
|
|
span.glyphicon.glyphicon-log-in
|
|
|
|
div(style="margin-top:53px;")
|
|
|
|
.container(ng-if="error.msg")
|
|
|
|
.alert.alert-danger(style="margin-top:20px;")
|
|
|
|
{{error.msg}}
|
|
|
|
div(ui-view="")
|