mirror of
https://github.com/key-networks/ztncui.git
synced 2025-04-21 11:56:55 +02:00
Show object values as JSON (member_detail)
This commit is contained in:
parent
0dbba64109
commit
5ad948b124
1 changed files with 2 additions and 13 deletions
|
@ -13,19 +13,8 @@ block net_content
|
|||
.col-sm-2
|
||||
a(href= member.address + '/' + key) #{key}:
|
||||
.col-sm-10
|
||||
- if ((!!value ) && (value.constructor == Object))
|
||||
p {
|
||||
each v2, k2 in value
|
||||
p #{k2}: #{v2},
|
||||
p }
|
||||
- else if ((!!value ) && (value.constructor == Array))
|
||||
p [
|
||||
each elem in value
|
||||
p {
|
||||
each v2, k2 in elem
|
||||
p #{k2}: #{v2},
|
||||
p }
|
||||
p ]
|
||||
- if ((!!value ) && (value.constructor == Object || value.constructor == Array))
|
||||
p #{JSON.stringify(value)}
|
||||
- else
|
||||
| #{value}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue