Shell for UI pages, some placeholder dashboard stats

This commit is contained in:
Jamie Curnow
2018-06-26 11:56:10 +10:00
parent 493bb77169
commit c69b174771
23 changed files with 328 additions and 24 deletions

View File

@@ -12,22 +12,13 @@ module.exports = Mn.View.extend({
template: template,
ui: {
link: 'a'
links: 'a'
},
events: {
'click @ui.link': function (e) {
'click @ui.links': function (e) {
e.preventDefault();
let href = $(e.currentTarget).attr('href');
switch (href) {
case '/':
Controller.showDashboard();
break;
case '/users':
Controller.showUsers();
break;
}
Controller.navigate($(e.currentTarget).attr('href'), true);
}
},