mirror of https://github.com/requarks/wiki
parent
a7c4f42ef0
commit
a748b3a4eb
@ -0,0 +1,11 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
import $ from 'jquery'
|
||||||
|
|
||||||
|
module.exports = (alerts) => {
|
||||||
|
if ($('#page-type-history').length) {
|
||||||
|
let currentBasePath = ($('#page-type-history').data('entrypath') !== 'home') ? $('#page-type-history').data('entrypath') : ''
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -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
|
Loading…
Reference in new issue