37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
let m = require('mithril')
|
|
|
|
var secondaryNav = {
|
|
view: function() {
|
|
return m('.filter.flex.six-600.four.grow', [
|
|
m('.sixth-600.none', ''),
|
|
m('div', m('a.navy', {
|
|
style: 'cursor: pointer; font-size: smaller;',
|
|
onclick: function() {
|
|
m.route.set('')
|
|
}
|
|
}, 'Semua')),
|
|
m('div', m('a.navy', {
|
|
style: 'cursor: pointer; font-size: smaller;',
|
|
onclick: function() {
|
|
m.route.set('/posts/active')
|
|
}
|
|
}, 'Aktif')),
|
|
m('div', m('a.navy', {
|
|
style: 'cursor: pointer; font-size: smaller;',
|
|
onclick: function() {
|
|
m.route.set('/posts/soon')
|
|
}
|
|
}, 'Belum Aktif')),
|
|
m('div', m('a.navy', {
|
|
style: 'cursor: pointer; font-size: smaller;',
|
|
onclick: function() {
|
|
m.route.set('/posts/inactive')
|
|
}
|
|
}, 'Nonaktif')),
|
|
m('.sixth-600.none', '')
|
|
])
|
|
}
|
|
}
|
|
|
|
module.exports = secondaryNav
|