2016-09-05 23:23:49 +00:00
|
|
|
extends ../layout.pug
|
2016-08-28 01:46:10 +00:00
|
|
|
|
|
|
|
block rootNavCenter
|
2017-02-10 02:35:37 +00:00
|
|
|
h2.nav-item= pageData.meta.title
|
2016-08-28 01:46:10 +00:00
|
|
|
|
|
|
|
block rootNavRight
|
2017-05-27 22:03:24 +00:00
|
|
|
loading-spinner
|
2017-02-10 02:35:37 +00:00
|
|
|
span.nav-item
|
2017-05-27 22:03:24 +00:00
|
|
|
a.button.is-outlined(v-on:click='$store.dispatch("modalDiscardPage/open")')
|
2017-02-10 02:35:37 +00:00
|
|
|
i.icon-cross
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.discard')
|
2017-05-28 18:34:50 +00:00
|
|
|
a.button(v-on:click='$root.$emit("editor/save")')
|
2017-02-10 02:35:37 +00:00
|
|
|
i.icon-check
|
2017-05-03 01:41:22 +00:00
|
|
|
span= t('nav.savechanges')
|
2016-08-28 01:46:10 +00:00
|
|
|
|
|
|
|
block content
|
2017-05-27 22:03:24 +00:00
|
|
|
editor(inline-template, current-path=pageData.meta.path, v-cloak)
|
2017-02-10 02:35:37 +00:00
|
|
|
.editor-area
|
2017-06-02 00:15:02 +00:00
|
|
|
textarea(ref='editorTextArea', v-pre)= pageData.markdown
|
2017-04-03 03:27:07 +00:00
|
|
|
|
2017-06-05 03:16:00 +00:00
|
|
|
editor-file
|
2017-05-29 00:30:58 +00:00
|
|
|
editor-video
|
2017-05-28 18:34:50 +00:00
|
|
|
editor-codeblock
|
2017-05-27 22:03:24 +00:00
|
|
|
modal-discard-page(mode='edit', current-path=pageData.meta.path)
|
|
|
|
page-loader(text=t('loading.editor'))
|