1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Episode details summary has access to series now

This commit is contained in:
Mark McDowall 2013-08-21 15:26:16 -07:00 committed by Mark McDowall
parent 8e2364966a
commit b1fa306223
4 changed files with 12 additions and 5 deletions

View File

@ -36,9 +36,8 @@ define(
initialize: function (options) { initialize: function (options) {
this.templateHelpers.hideSeriesLink = options.hideSeriesLink; this.templateHelpers.hideSeriesLink = options.hideSeriesLink;
var series = SeriesCollection.find({ id: this.model.get('seriesId') }); this.series = SeriesCollection.find({ id: this.model.get('seriesId') });
this.templateHelpers.series = series.toJSON(); this.templateHelpers.series = this.series.toJSON();
var test = 1;
}, },
onShow: function () { onShow: function () {
@ -53,7 +52,7 @@ define(
} }
this.ui.summary.tab('show'); this.ui.summary.tab('show');
this.summary.show(new SummaryLayout({model: this.model})); this.summary.show(new SummaryLayout({model: this.model, series: this.series}));
}, },
_showActivity: function (e) { _showActivity: function (e) {

View File

@ -3,7 +3,6 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3> <h3>
{{debug}}
<i class="icon-bookmark x-episode-monitored" title="Toggle monitored status" /> <i class="icon-bookmark x-episode-monitored" title="Toggle monitored status" />
{{#if episodeTitle}} {{#if episodeTitle}}
{{title}} - {{EpisodeNumber}} - {{episodeTitle}} {{title}} - {{EpisodeNumber}} - {{episodeTitle}}

View File

@ -39,6 +39,14 @@ define(
} }
], ],
templateHelpers: {},
initialize: function (options) {
if (!this.model.series) {
this.templateHelpers.series = options.series.toJSON();
}
},
onShow: function () { onShow: function () {
if (this.model.get('episodeFile')) { if (this.model.get('episodeFile')) {
this.activity.show(new Backgrid.Grid({ this.activity.show(new Backgrid.Grid({

View File

@ -1,4 +1,5 @@
<div class="episode-info"> <div class="episode-info">
{{debug}}
{{#with series}} {{#with series}}
{{qualityProfile qualityProfileId}} {{qualityProfile qualityProfileId}}
<span class="label label-info">{{network}}</span> <span class="label label-info">{{network}}</span>