feat: History page - List previous commits

This commit is contained in:
NGPixel
2017-04-30 16:37:10 -04:00
parent a7c4f42ef0
commit a748b3a4eb
10 changed files with 132 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ $(() => {
offset: -50
})
$('.stickyscroll').sticky({ topSpacing: 15 })
$('.stickyscroll').sticky({ topSpacing: 15, bottomSpacing: 75 })
// ====================================
// Notifications
@@ -58,5 +58,6 @@ $(() => {
require('./pages/create.js')(alerts, socket)
require('./pages/edit.js')(alerts, socket)
require('./pages/source.js')(alerts)
require('./pages/history.js')(alerts)
require('./pages/admin.js')(alerts)
})

View File

@@ -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') : ''
}
}

View File

@@ -45,6 +45,21 @@
transition: all .4s ease;
line-height: 14px;
&.is-multiline {
flex-wrap: wrap;
}
&.is-active {
border-left: 5px solid mc('blue', '500');
color: mc('blue', '300');
padding-left: 15px;
.is-small {
color: mc('blue', '500');
}
}
i {
margin-right: 7px;
color: mc('blue-grey', '300');
@@ -55,6 +70,13 @@
text-decoration: none;
}
.is-small {
flex: 1 0 100%;
display: block;
font-size: 11px;
color: rgba(255,255,255,.5)
}
}
> ul {