You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. extends ../layout.pug
  2. block rootNavCenter
  3. h2.nav-item= pageData.meta.title
  4. block rootNavRight
  5. loading-spinner
  6. span.nav-item
  7. if rights.write && pageData.meta.path !== 'home'
  8. a.button.is-outlined(v-on:click='$store.dispatch("modalMovePage/open")')
  9. i.nc-icon-outline.arrows-1_shuffle-98
  10. span= t('nav.move')
  11. a.button.is-outlined(href='/' + pageData.meta.path)
  12. i.nc-icon-outline.ui-2_book
  13. span= t('nav.normalview')
  14. if rights.write
  15. a.button.is-orange(href='/edit/' + pageData.meta.path)
  16. i.nc-icon-outline.ui-1_edit-76
  17. span= t('nav.edit')
  18. a.button(v-on:click='$store.dispatch("modalCreatePage/open")')
  19. i.nc-icon-outline.ui-1_simple-add
  20. span= t('nav.create')
  21. block content
  22. source-view(inline-template, entrypath=pageData.meta.path, v-cloak)
  23. .ace-container
  24. #source-display(v-pre)= pageData.markdown
  25. modal-create-page(basepath=pageData.meta.path)
  26. modal-move-page(current-path=pageData.meta.path)
  27. page-loader(text=t('loading.source'))