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

30 lines
805 B
Plaintext
Raw Normal View History

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
loading-spinner
2017-02-10 02:35:37 +00:00
span.nav-item
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')
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
editor(inline-template, current-path=pageData.meta.path, v-cloak)
2017-06-11 21:55:06 +00:00
.columns.is-gapless
.column.editor-area
textarea(ref='editorTextArea', v-pre)= pageData.markdown
.column.editor-sd
.editor-sd-item Images
.editor-sd-item Files
editor-file
editor-video
editor-codeblock
modal-discard-page(mode='edit', current-path=pageData.meta.path)
page-loader(text=t('loading.editor'))