38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
extends ../layout.pug
|
|
|
|
block rootNavRight
|
|
i.nav-item#notifload
|
|
|
|
block content
|
|
|
|
#page-type-all
|
|
.container.is-fluid.has-collapsable-nav
|
|
.sidebar.is-collapsed
|
|
aside
|
|
.sidebar-label
|
|
span NAV
|
|
ul.sidebar-menu
|
|
li
|
|
a(href='/')
|
|
i.icon-home
|
|
span Home
|
|
if !isGuest
|
|
li
|
|
a(href='/admin')
|
|
i.icon-head
|
|
span Account
|
|
else
|
|
li
|
|
a(href='/login')
|
|
i.icon-unlock
|
|
span Login
|
|
ul.collapsable-nav(v-for='treeItem in tree', :class='{ "has-children": treeItem.hasChildren }', v-cloak)
|
|
li(v-for='page in treeItem.pages', :class='{ "is-active": page.isActive }')
|
|
a(v-on:click='(page.isDirectory) ? fetch(page._id) : goto(page._id)')
|
|
template(v-if='page._id !== "home"')
|
|
i(:class='{ "icon-folder2": page.isDirectory, "icon-file-text-o": !page.isDirectory }')
|
|
span {{ page.title }}
|
|
template(v-else)
|
|
i.icon-home
|
|
span Home
|