Caching + Edit Mode UI
This commit is contained in:
24
views/pages/edit.pug
Normal file
24
views/pages/edit.pug
Normal file
@@ -0,0 +1,24 @@
|
||||
extends ../layout
|
||||
|
||||
block rootNavCenter
|
||||
h2.nav-item= pageData.meta.title
|
||||
|
||||
block rootNavRight
|
||||
a.nav-item(href='#')
|
||||
| History
|
||||
a.nav-item(href='#')
|
||||
| Source
|
||||
span.nav-item
|
||||
a.button.is-danger(href='/' + pageData.meta.path)
|
||||
span.icon
|
||||
i.fa.fa-times
|
||||
span Discard
|
||||
a.button.is-success(href='#', onclick='$(".modal").addClass("is-active");')
|
||||
span.icon
|
||||
i.fa.fa-check
|
||||
span Save Changes
|
||||
|
||||
block content
|
||||
|
||||
section.section.is-small
|
||||
textarea#mk-editor= pageData.markdown
|
@@ -8,6 +8,21 @@ mixin tocMenu(ti)
|
||||
ul
|
||||
+tocMenu(node.nodes)
|
||||
|
||||
block rootNavRight
|
||||
a.nav-item(href='#')
|
||||
| History
|
||||
a.nav-item(href='#')
|
||||
| Source
|
||||
span.nav-item
|
||||
a.button(href='/edit/' + pageData.meta.path)
|
||||
span.icon
|
||||
i.fa.fa-edit
|
||||
span Edit
|
||||
a.button.is-primary(href='#', onclick='$(".modal").addClass("is-active");')
|
||||
span.icon
|
||||
i.fa.fa-plus
|
||||
span Create
|
||||
|
||||
block content
|
||||
|
||||
section.section
|
||||
@@ -23,8 +38,9 @@ block content
|
||||
ul.menu-list
|
||||
li
|
||||
a(href='/') Home
|
||||
li
|
||||
a(href='/') Storage
|
||||
if pageData.parent
|
||||
li
|
||||
a(href='/' + pageData.parent.path)= pageData.parent.title
|
||||
li
|
||||
a(href='/account') Account
|
||||
.box.stickyscroll(data-margin-top=70)
|
||||
|
Reference in New Issue
Block a user