System page added, with link to logs

This commit is contained in:
Mark McDowall 2013-07-28 13:20:26 -07:00
parent 625acef635
commit a9ac2500d5
9 changed files with 132 additions and 5 deletions

View file

@ -13,16 +13,18 @@ define(
'Calendar/CalendarLayout',
'Logs/Layout',
'Release/Layout',
'System/Layout',
'Shared/NotFoundView',
'Shared/Modal/Region'
], function (App, Marionette, HistoryLayout, SettingsLayout, AddSeriesLayout, SeriesIndexLayout, SeriesDetailsLayout, MissingLayout, SeriesModel, CalendarLayout,
LogsLayout, ReleaseLayout, NotFoundView) {
LogsLayout, ReleaseLayout, SystemLayout, NotFoundView) {
return Marionette.Controller.extend({
series : function () {
this._setTitle('NzbDrone');
App.mainRegion.show(new SeriesIndexLayout());
},
seriesDetails: function (query) {
var self = this;
@ -74,12 +76,16 @@ define(
App.mainRegion.show(new LogsLayout());
},
system: function () {
this._setTitle('system');
App.mainRegion.show(new SystemLayout());
},
notFound: function () {
this._setTitle('Not Found');
App.mainRegion.show(new NotFoundView(this));
},
_setTitle: function (title) {
//$('#title-region').html(title);