mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
added episode detail modal
summary tab is working.
This commit is contained in:
parent
80759f923e
commit
95a6dfc34e
14 changed files with 174 additions and 47 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
17
UI/Series/Details/EpisodeTitleCell.js
Normal file
17
UI/Series/Details/EpisodeTitleCell.js
Normal 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);
|
||||
}
|
||||
});
|
||||
});
|
|
@ -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
30
UI/Series/details.less
Normal 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;
|
||||
}
|
||||
}
|
|
@ -106,17 +106,4 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.series-season {
|
||||
.episode-number-cell {
|
||||
width: 20px;
|
||||
}
|
||||
.episode-air-date-cell {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.episode-status-cell {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue