mirror of
https://github.com/key-networks/ztncui.git
synced 2024-08-31 04:28:00 +00:00
issue20: check that elem is defined
This commit is contained in:
@@ -18,13 +18,13 @@ block body_content
|
||||
| Key Networks
|
||||
.collapse.navbar-collapse(id='BarNav')
|
||||
ul.nav.navbar-nav
|
||||
li(class=(nav.active === 'controller_home'? 'active' : ''))
|
||||
li(class=(navigate.active === 'controller_home'? 'active' : ''))
|
||||
a(href='/controller') Home
|
||||
li(class=(nav.active === 'users'? 'active' : ''))
|
||||
li(class=(navigate.active === 'users'? 'active' : ''))
|
||||
a(href='/users') Users
|
||||
li(class=(nav.active === 'networks'? 'active' : ''))
|
||||
li(class=(navigate.active === 'networks'? 'active' : ''))
|
||||
a(href='/controller/networks') Networks
|
||||
li(class=(nav.active === 'add_network'? 'active' : ''))
|
||||
li(class=(navigate.active === 'add_network'? 'active' : ''))
|
||||
a(href='/controller/network/create') Add network
|
||||
ul.nav.navbar-nav.navbar-right
|
||||
li
|
||||
|
||||
@@ -33,8 +33,9 @@ block net_content
|
||||
p [
|
||||
each elem in value
|
||||
p {
|
||||
each v2, k2 in elem
|
||||
p #{k2}: #{v2},
|
||||
- if (!!elem)
|
||||
each v2, k2 in elem
|
||||
p #{k2}: #{v2},
|
||||
p },
|
||||
p ]
|
||||
- else
|
||||
|
||||
@@ -18,5 +18,5 @@ block content
|
||||
|
||||
.col-sm-2
|
||||
h2.right
|
||||
a.btn.btn-default(href=nav.whence role='button') Back
|
||||
a.btn.btn-default(href=navigate.whence role='button') Back
|
||||
block net_content
|
||||
|
||||
@@ -18,11 +18,11 @@ block body_content
|
||||
| Key Networks
|
||||
.collapse.navbar-collapse(id='BarNav')
|
||||
ul.nav.navbar-nav
|
||||
li(class=(nav.active === 'home'? 'active' : ''))
|
||||
li(class=(navigate.active === 'home'? 'active' : ''))
|
||||
a(href='/controller') Home
|
||||
li(class=(nav.active === 'users'? 'active' : ''))
|
||||
li(class=(navigate.active === 'users'? 'active' : ''))
|
||||
a(href='/users') Users
|
||||
li(class=(nav.active === 'create_user'? 'active' : ''))
|
||||
li(class=(navigate.active === 'create_user'? 'active' : ''))
|
||||
a(href='/users/create') Create user
|
||||
ul.nav.navbar-nav.navbar-right
|
||||
li
|
||||
|
||||
Reference in New Issue
Block a user