fix: source view buttons

This commit is contained in:
NGPixel 2017-05-26 22:46:00 -04:00
parent a0a19cd76f
commit 6f59ee4d52

View File

@ -6,8 +6,8 @@ block rootNavCenter
block rootNavRight block rootNavRight
loading-spinner loading-spinner
span.nav-item span.nav-item
if rights.write if rights.write && pageData.meta.path !== 'home'
a.button.is-outlined.btn-move-prompt.is-hidden a.button.is-outlined(v-on:click='$store.dispatch("modalMovePage/open")')
i.icon-shuffle i.icon-shuffle
span= t('nav.move') span= t('nav.move')
a.button.is-outlined(href='/' + pageData.meta.path) a.button.is-outlined(href='/' + pageData.meta.path)
@ -15,10 +15,10 @@ block rootNavRight
span= t('nav.normalview') span= t('nav.normalview')
if rights.write if rights.write
a.button.is-orange(href='/edit/' + pageData.meta.path) a.button.is-orange(href='/edit/' + pageData.meta.path)
i.fa.fa-edit i.icon-document-text
span= t('nav.edit') span= t('nav.edit')
a.button.is-blue.btn-create-prompt a.button(v-on:click='$store.dispatch("modalCreatePage/open")')
i.fa.fa-plus i.icon-plus
span= t('nav.create') span= t('nav.create')
block content block content
@ -27,6 +27,6 @@ block content
.ace-container .ace-container
#source-display= pageData.markdown #source-display= pageData.markdown
include ../modals/create.pug modal-create-page(basepath=pageData.meta.path)
include ../modals/move.pug modal-move-page(current-path=pageData.meta.path)
page-loader(text=t('loading.source')) page-loader(text=t('loading.source'))