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.

87 lines
2.4 KiB

  1. extends ../layout.pug
  2. mixin tocMenu(ti)
  3. each node in ti
  4. li
  5. a(href='#' + node.anchor, title=node.content)= node.content
  6. if node.nodes.length > 0
  7. ul
  8. +tocMenu(node.nodes)
  9. block rootNavRight
  10. loading-spinner
  11. .nav-item
  12. if rights.write
  13. a.button.is-outlined.btn-move-prompt.is-hidden
  14. i.icon-shuffle
  15. span= t('nav.move')
  16. a.button.is-outlined(href='/source/' + pageData.meta.path)
  17. i.icon-loader
  18. span= t('nav.source')
  19. a.button.is-outlined(href='/hist/' + pageData.meta.path)
  20. i.icon-clock
  21. span= t('nav.history')
  22. if rights.write
  23. a.button(href='/edit/' + pageData.meta.path)
  24. i.icon-document-text
  25. span= t('nav.edit')
  26. a.button.btn-create-prompt
  27. i.icon-plus
  28. span= t('nav.create')
  29. block content
  30. //- #page-type-view.page-type-container(data-entrypath=pageData.meta.path)
  31. content-view(inline-template)
  32. .container.is-fluid.has-mkcontent
  33. .columns.is-gapless
  34. .column.is-narrow.is-hidden-touch.sidebar
  35. aside
  36. .sidebar-label
  37. span= t('sidebar.navigation')
  38. ul.sidebar-menu
  39. li
  40. a(href='/')
  41. i.icon-home
  42. span= t('nav.home')
  43. li
  44. a(href='/all')
  45. i.icon-paper
  46. span= t('nav.allpages')
  47. if pageData.parent
  48. li
  49. a(href='/' + pageData.parent.path)
  50. i.icon-reply
  51. span= pageData.parent.title
  52. if !isGuest
  53. li
  54. a(href='/admin')
  55. i.icon-cog
  56. span= t('nav.settings')
  57. else
  58. li
  59. a(href='/login')
  60. i.icon-unlock
  61. span= t('nav.login')
  62. aside.sidebar-pagecontents
  63. .sidebar-label
  64. span= t('sidebar.pagecontents')
  65. ul.sidebar-menu
  66. li.is-hidden-until-scroll: a(href='#root', title='Top of Page')
  67. i.icon-arrow-up2
  68. +tocMenu(pageData.tree)
  69. .column
  70. .hero
  71. h1.title#title= pageData.meta.title
  72. if pageData.meta.subtitle
  73. h2.subtitle= pageData.meta.subtitle
  74. .content.mkcontent
  75. != pageData.html
  76. include ../modals/create.pug
  77. include ../modals/move.pug
  78. anchor