feat: History page - List previous commits
This commit is contained in:
@@ -7,6 +7,7 @@ block adminContent
|
||||
h2.subtitle Manage site configuration
|
||||
.form-sections
|
||||
section
|
||||
img(src='/images/logo.png', style={width:'200px', float:'right'})
|
||||
label.label System Version
|
||||
.section-block
|
||||
p Current Version: #[strong= sysversion.current]
|
||||
|
35
server/views/pages/history.pug
Normal file
35
server/views/pages/history.pug
Normal file
@@ -0,0 +1,35 @@
|
||||
extends ../layout.pug
|
||||
|
||||
block rootNavRight
|
||||
i.nav-item#notifload
|
||||
.nav-item
|
||||
a.button(href='/' + pageData.meta._id)
|
||||
i.icon-circle-check
|
||||
span View Latest
|
||||
|
||||
block content
|
||||
|
||||
#page-type-history.page-type-container(data-entrypath=pageData.meta._id)
|
||||
.container.is-fluid.has-mkcontent
|
||||
.columns.is-gapless
|
||||
|
||||
.column.is-narrow.is-hidden-touch.sidebar
|
||||
|
||||
aside.stickyscroll
|
||||
.sidebar-label
|
||||
span Past versions
|
||||
ul.sidebar-menu
|
||||
each item, index in pageData.history
|
||||
- var itemDate = moment(item.date)
|
||||
li: a.is-multiline(class={ 'is-active': index < 1 }, href='', title=itemDate.format('LLLL'))
|
||||
span= itemDate.calendar(null, { sameElse: 'llll'})
|
||||
span.is-small= item.commitAbbr
|
||||
|
||||
.column
|
||||
|
||||
.hero
|
||||
h1.title#title= pageData.meta.title
|
||||
if pageData.meta.subtitle
|
||||
h2.subtitle= pageData.meta.subtitle
|
||||
.content.mkcontent
|
||||
!= pageData.html
|
@@ -18,9 +18,9 @@ block rootNavRight
|
||||
a.button.is-outlined(href='/source/' + pageData.meta.path)
|
||||
i.icon-loader
|
||||
span Source
|
||||
a.button.is-outlined(href='/diff/' + pageData.meta.path)
|
||||
i.icon-flow-merge
|
||||
span Diff
|
||||
a.button.is-outlined(href='/hist/' + pageData.meta.path)
|
||||
i.icon-clock
|
||||
span History
|
||||
if rights.write
|
||||
a.button(href='/edit/' + pageData.meta.path)
|
||||
i.icon-document-text
|
||||
|
Reference in New Issue
Block a user