wikijs-fork/server/views/pages/all.pug

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-04-09 15:48:37 +00:00
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
2017-05-03 01:41:22 +00:00
span= t('sidebar.nav')
ul.sidebar-menu
li
a(href='/')
i.icon-home
2017-05-03 01:41:22 +00:00
span= t('nav.home')
if !isGuest
2017-04-09 15:48:37 +00:00
li
a(href='/admin')
i.icon-head
2017-05-03 01:41:22 +00:00
span= t('nav.account')
else
li
a(href='/login')
i.icon-unlock
2017-05-03 01:41:22 +00:00
span= t('nav.login')
2017-04-18 02:44:04 +00:00
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='mainAction(page)')
2017-04-23 19:54:35 +00:00
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
2017-05-03 01:41:22 +00:00
span= t('nav.home')
a.is-pagelink(v-if='page.isDirectory && page.isEntry', v-on:click='goto(page._id)')
i.icon-file-text-o
i.icon-arrow-right2