mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
added episode detail modal
summary tab is working.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
+1
-14
@@ -106,17 +106,4 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.series-season {
|
||||
.episode-number-cell {
|
||||
width: 20px;
|
||||
}
|
||||
.episode-air-date-cell {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.episode-status-cell {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user