added episode detail modal

summary tab is working.
This commit is contained in:
kay.one 2013-05-20 17:17:33 -07:00
commit 95a6dfc34e
14 changed files with 174 additions and 47 deletions

View file

@ -5,9 +5,6 @@ define(['app', 'Episode/Layout'], function () {
className: 'episode-status-cell',
events: {
'click': 'showDetails'
},
render: function () {
this.$el.empty();
@ -32,11 +29,6 @@ define(['app', 'Episode/Layout'], function () {
}
return this;
},
showDetails: function () {
var view = new NzbDrone.Episode.Layout({ model: this.model });
NzbDrone.modalRegion.show(view);
}
});
});

View file

@ -0,0 +1,17 @@
"use strict";
define(['app', 'Episode/Layout'], function () {
NzbDrone.Series.Details.EpisodeTitleCell = Backgrid.StringCell.extend({
className: 'episode-title-cell',
events: {
'click': 'showDetails'
},
showDetails: function () {
var view = new NzbDrone.Episode.Layout({ model: this.model });
NzbDrone.modalRegion.show(view);
}
});
});

View file

@ -1,5 +1,5 @@
'use strict';
define(['app', 'Series/Details/EpisodeStatusCell'], function () {
define(['app', 'Series/Details/EpisodeStatusCell', 'Series/Details/EpisodeTitleCell'], function () {
NzbDrone.Series.Details.SeasonLayout = Backbone.Marionette.Layout.extend({
template: 'Series/Details/SeasonLayoutTemplate',
@ -20,7 +20,7 @@ define(['app', 'Series/Details/EpisodeStatusCell'], function () {
{
name : 'title',
label: 'Title',
cell : 'string'
cell : NzbDrone.Series.Details.EpisodeTitleCell
},
{
name : 'airDate',

30
UI/Series/details.less Normal file
View file

@ -0,0 +1,30 @@
.series-season {
.episode-number-cell {
width: 20px;
}
.episode-air-date-cell {
width: 150px;
}
.episode-status-cell {
width: 100px;
}
.episode-title-cell {
cursor: pointer;
}
}
.episode-detail-modal {
.episode-overview {
font-style: italic;
}
.episode-file-info {
margin-top: 30px;
font-size: 12px;
}
}

View file

@ -106,17 +106,4 @@
display: none;
}
}
}
.series-season {
.episode-number-cell {
width: 20px;
}
.episode-air-date-cell {
width: 150px;
}
.episode-status-cell {
width: 100px;
}
}
}