2016-09-05 23:23:49 +00:00
|
|
|
extends ../layout.pug
|
2016-08-18 03:52:23 +00:00
|
|
|
|
2016-08-20 21:20:53 +00:00
|
|
|
mixin tocMenu(ti)
|
2017-02-10 02:35:37 +00:00
|
|
|
each node in ti
|
|
|
|
li
|
|
|
|
a(href='#' + node.anchor, title=node.content)= node.content
|
|
|
|
if node.nodes.length > 0
|
|
|
|
ul
|
|
|
|
+tocMenu(node.nodes)
|
2016-08-20 21:20:53 +00:00
|
|
|
|
2016-08-28 01:46:10 +00:00
|
|
|
block rootNavRight
|
2017-05-22 17:32:52 +00:00
|
|
|
loading-spinner
|
2017-02-10 02:35:37 +00:00
|
|
|
.nav-item
|
2017-05-27 02:23:05 +00:00
|
|
|
if rights.write && pageData.meta.path !== 'home'
|
|
|
|
a.button.is-outlined(v-on:click='$store.dispatch("modalMovePage/open")')
|
2017-02-10 02:35:37 +00:00
|
|
|
i.icon-shuffle
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.move')
|
2017-02-10 02:35:37 +00:00
|
|
|
a.button.is-outlined(href='/source/' + pageData.meta.path)
|
|
|
|
i.icon-loader
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.source')
|
2017-05-28 23:56:10 +00:00
|
|
|
//- a.button.is-outlined(href='/hist/' + pageData.meta.path)
|
2017-04-30 20:37:10 +00:00
|
|
|
i.icon-clock
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.history')
|
2017-02-10 02:35:37 +00:00
|
|
|
if rights.write
|
|
|
|
a.button(href='/edit/' + pageData.meta.path)
|
|
|
|
i.icon-document-text
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.edit')
|
2017-05-26 00:54:03 +00:00
|
|
|
a.button(v-on:click='$store.dispatch("modalCreatePage/open")')
|
2017-02-10 02:35:37 +00:00
|
|
|
i.icon-plus
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.create')
|
2016-08-28 01:46:10 +00:00
|
|
|
|
2016-08-18 03:52:23 +00:00
|
|
|
block content
|
|
|
|
|
2017-05-23 04:27:16 +00:00
|
|
|
content-view(inline-template)
|
2017-04-08 20:16:13 +00:00
|
|
|
.container.is-fluid.has-mkcontent
|
2017-02-10 02:35:37 +00:00
|
|
|
.columns.is-gapless
|
2016-08-18 03:52:23 +00:00
|
|
|
|
2017-02-10 02:35:37 +00:00
|
|
|
.column.is-narrow.is-hidden-touch.sidebar
|
2016-08-18 03:52:23 +00:00
|
|
|
|
2017-02-10 02:35:37 +00:00
|
|
|
aside
|
|
|
|
.sidebar-label
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('sidebar.navigation')
|
2017-02-10 02:35:37 +00:00
|
|
|
ul.sidebar-menu
|
|
|
|
li
|
|
|
|
a(href='/')
|
|
|
|
i.icon-home
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.home')
|
2017-04-09 15:48:37 +00:00
|
|
|
li
|
|
|
|
a(href='/all')
|
|
|
|
i.icon-paper
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.allpages')
|
2017-02-10 02:35:37 +00:00
|
|
|
if pageData.parent
|
|
|
|
li
|
|
|
|
a(href='/' + pageData.parent.path)
|
|
|
|
i.icon-reply
|
|
|
|
span= pageData.parent.title
|
|
|
|
if !isGuest
|
|
|
|
li
|
|
|
|
a(href='/admin')
|
2017-05-21 03:21:16 +00:00
|
|
|
i.icon-cog
|
|
|
|
span= t('nav.settings')
|
2017-02-10 02:35:37 +00:00
|
|
|
else
|
|
|
|
li
|
|
|
|
a(href='/login')
|
|
|
|
i.icon-unlock
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.login')
|
2017-05-19 23:53:23 +00:00
|
|
|
aside.sidebar-pagecontents
|
2017-02-10 02:35:37 +00:00
|
|
|
.sidebar-label
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('sidebar.pagecontents')
|
2017-02-10 02:35:37 +00:00
|
|
|
ul.sidebar-menu
|
2017-04-30 04:16:46 +00:00
|
|
|
li.is-hidden-until-scroll: a(href='#root', title='Top of Page')
|
2017-04-30 04:05:00 +00:00
|
|
|
i.icon-arrow-up2
|
2017-02-10 02:35:37 +00:00
|
|
|
+tocMenu(pageData.tree)
|
2016-08-18 03:52:23 +00:00
|
|
|
|
2017-02-10 02:35:37 +00:00
|
|
|
.column
|
|
|
|
.hero
|
|
|
|
h1.title#title= pageData.meta.title
|
|
|
|
if pageData.meta.subtitle
|
|
|
|
h2.subtitle= pageData.meta.subtitle
|
2017-06-02 00:15:02 +00:00
|
|
|
.content.mkcontent(v-pre)
|
2017-02-10 02:35:37 +00:00
|
|
|
!= pageData.html
|
2016-08-18 03:52:23 +00:00
|
|
|
|
2017-05-26 00:54:03 +00:00
|
|
|
modal-create-page(basepath=pageData.meta.path)
|
2017-05-27 02:23:05 +00:00
|
|
|
modal-move-page(current-path=pageData.meta.path)
|
2017-05-22 17:32:52 +00:00
|
|
|
anchor
|