mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
LINQ for paging missing episodes
This commit is contained in:
parent
a414a4663e
commit
d37c8c26c2
26 changed files with 318 additions and 57 deletions
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
define(['app', 'History/Model'], function () {
|
||||
NzbDrone.Missing.Collection = Backbone.PageableCollection.extend({
|
||||
NzbDrone.History.Collection = Backbone.PageableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/history',
|
||||
model : NzbDrone.History.Model,
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<i class="icon-search x-search" title="Search"></i>
|
||||
<i class="icon-remove x-remove" title="Remove"></i>
|
||||
<i class="icon-repeat x-redownload" title="Re-Download"></i>
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
{{seasonNumber}}x{{paddedEpisodeNumber}}
|
|
@ -18,11 +18,18 @@ define([
|
|||
showTable: function () {
|
||||
|
||||
var columns = [
|
||||
{
|
||||
name : 'indexer',
|
||||
label : '',
|
||||
editable : false,
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'History/IndexerTemplate' }),
|
||||
headerCell: 'nzbDrone'
|
||||
},
|
||||
{
|
||||
name : 'seriesTitle',
|
||||
label : 'Series Title',
|
||||
editable : false,
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'History/SeriesTitleTemplate' }),
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'Missing/SeriesTitleTemplate' }),
|
||||
headerCell: 'nzbDrone'
|
||||
},
|
||||
{
|
||||
|
@ -30,11 +37,11 @@ define([
|
|||
label : 'Episode',
|
||||
editable : false,
|
||||
sortable : false,
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'History/EpisodeColumnTemplate' }),
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'Missing/EpisodeColumnTemplate' }),
|
||||
headerCell: 'nzbDrone'
|
||||
},
|
||||
{
|
||||
name : 'title',
|
||||
name : 'episode.title',
|
||||
label : 'Episode Title',
|
||||
editable : false,
|
||||
sortable : false,
|
||||
|
@ -42,8 +49,15 @@ define([
|
|||
headerCell: 'nzbDrone'
|
||||
},
|
||||
{
|
||||
name : 'airDate',
|
||||
label : 'Air Date',
|
||||
name : 'quality',
|
||||
label : 'Quality',
|
||||
editable : false,
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'History/QualityTemplate' }),
|
||||
headerCell: 'nzbDrone'
|
||||
},
|
||||
{
|
||||
name : 'date',
|
||||
label : 'Grabbed',
|
||||
editable : false,
|
||||
cell : 'airDate',
|
||||
headerCell: 'nzbDrone'
|
||||
|
|
1
UI/History/IndexerTemplate.html
Normal file
1
UI/History/IndexerTemplate.html
Normal file
|
@ -0,0 +1 @@
|
|||
<img src="favicon.ico" alt="{{indexer}}"/>
|
5
UI/History/QualityTemplate.html
Normal file
5
UI/History/QualityTemplate.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{quality.quality.name}}
|
||||
|
||||
{{#if quality.proper}}
|
||||
[PROPER]
|
||||
{{/if}}
|
|
@ -1 +0,0 @@
|
|||
<a href="series/details/{{series.titleSlug}}">{{series.title}}</a>
|
|
@ -20,7 +20,7 @@ define([
|
|||
|
||||
var columns = [
|
||||
{
|
||||
name : 'seriesTitle',
|
||||
name : 'series.Title',
|
||||
label : 'Series Title',
|
||||
editable : false,
|
||||
cell : Backgrid.TemplateBackedCell.extend({ template: 'Missing/SeriesTitleTemplate' }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue