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

33 lines
838 B
Plaintext
Raw Normal View History

extends ../layout.pug
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
if rights.write
a.button.is-outlined.btn-move-prompt.is-hidden
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)
i.fa.fa-edit
2017-05-03 01:41:22 +00:00
span= t('nav.edit')
2017-02-10 02:35:37 +00:00
a.button.is-blue.btn-create-prompt
i.fa.fa-plus
2017-05-03 01:41:22 +00:00
span= t('nav.create')
2016-09-09 23:22:18 +00:00
block content
source-view(inline-template, data-entrypath=pageData.meta.path, v-cloak)
2017-02-10 02:35:37 +00:00
.ace-container
#source-display= pageData.markdown
2017-02-10 02:35:37 +00:00
include ../modals/create.pug
include ../modals/move.pug
page-loader(text=t('loading.source'))