mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
8 years ago
|
extends ../layout.pug
|
||
|
|
||
|
block rootNavRight
|
||
|
i.nav-item#notifload
|
||
|
|
||
|
block content
|
||
|
|
||
|
#page-type-all
|
||
|
.container.is-fluid.has-collapsable-nav
|
||
8 years ago
|
.sidebar.is-collapsed
|
||
|
aside
|
||
|
.sidebar-label
|
||
|
span NAV
|
||
|
ul.sidebar-menu
|
||
|
li
|
||
|
a(href='/')
|
||
|
i.icon-home
|
||
|
span Home
|
||
|
if !isGuest
|
||
8 years ago
|
li
|
||
8 years ago
|
a(href='/admin')
|
||
|
i.icon-head
|
||
|
span Account
|
||
|
else
|
||
|
li
|
||
|
a(href='/login')
|
||
|
i.icon-unlock
|
||
|
span Login
|
||
8 years ago
|
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 }')
|
||
8 years ago
|
a(v-on:click='mainAction(page)')
|
||
8 years ago
|
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
|
||
8 years ago
|
a.is-pagelink(v-if='page.isDirectory && page.isEntry', v-on:click='goto(page._id)')
|
||
|
i.icon-file-text-o
|
||
|
i.icon-arrow-right2
|