2016-09-05 23:23:49 +00:00
|
|
|
extends ../layout.pug
|
2016-08-30 02:19:47 +00:00
|
|
|
|
2016-09-09 23:22:18 +00:00
|
|
|
block rootNavCenter
|
2017-02-10 02:35:37 +00:00
|
|
|
h2.nav-item= pageData.meta.title
|
2016-09-09 23:22:18 +00:00
|
|
|
|
|
|
|
block rootNavRight
|
2017-05-22 01:30:34 +00:00
|
|
|
loading-spinner
|
2017-02-10 02:35:37 +00:00
|
|
|
span.nav-item
|
2017-05-27 02:46:00 +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='/' + pageData.meta.path)
|
|
|
|
i.icon-loader
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.normalview')
|
2017-02-10 02:35:37 +00:00
|
|
|
if rights.write
|
|
|
|
a.button.is-orange(href='/edit/' + pageData.meta.path)
|
2017-05-27 02:46:00 +00:00
|
|
|
i.icon-document-text
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.edit')
|
2017-05-27 02:46:00 +00:00
|
|
|
a.button(v-on:click='$store.dispatch("modalCreatePage/open")')
|
|
|
|
i.icon-plus
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.create')
|
2016-09-09 23:22:18 +00:00
|
|
|
|
2016-08-30 02:19:47 +00:00
|
|
|
block content
|
|
|
|
|
2017-05-27 22:03:24 +00:00
|
|
|
source-view(inline-template, entrypath=pageData.meta.path, v-cloak)
|
2017-02-10 02:35:37 +00:00
|
|
|
.ace-container
|
|
|
|
#source-display= pageData.markdown
|
2016-08-30 02:19:47 +00:00
|
|
|
|
2017-05-27 02:46:00 +00:00
|
|
|
modal-create-page(basepath=pageData.meta.path)
|
|
|
|
modal-move-page(current-path=pageData.meta.path)
|
2017-05-26 04:12:38 +00:00
|
|
|
page-loader(text=t('loading.source'))
|