mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
sugar kills (removed sugar.js)
Relative dates for next airing on posters and list (series) History time shows real time on tooltip
This commit is contained in:
parent
641e01376b
commit
207d9c256d
21 changed files with 296 additions and 9100 deletions
|
@ -2,16 +2,17 @@
|
|||
define(
|
||||
[
|
||||
'backbone',
|
||||
'moment',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
], function (Backbone, Moment, SeriesModel) {
|
||||
return Backbone.Model.extend({
|
||||
|
||||
initialize: function () {
|
||||
if (this.has('series')) {
|
||||
var start = Date.create(this.get('airDate'));
|
||||
var start = Moment(this.get('airDate'));
|
||||
var runtime = this.get('series').get('runtime');
|
||||
|
||||
this.set('end', start.addMinutes(runtime));
|
||||
this.set('end', start.add('minutes', runtime));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<div class="span8">
|
||||
{{#if_eq status compare="continuing"}}
|
||||
{{#if nextAiring}}
|
||||
<span class="label">{{ShortDate nextAiring}}</span>
|
||||
<span class="label">{{NextAiring nextAiring}}</span>
|
||||
{{/if}}
|
||||
<span class="label label-info">Season {{seasonCount}}</span>
|
||||
{{else}}
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
<div class="center">
|
||||
<div class="labels">
|
||||
{{#if isContinuing}}
|
||||
{{#if_eq status compare="continuing"}}
|
||||
{{#if nextAiring}}
|
||||
<span class="label label-inverse">{{ShortDate nextAiring}}</span>
|
||||
<span class="label label-inverse">{{NextAiring nextAiring}}</span>
|
||||
{{/if}}
|
||||
<span class="label label-info">Season {{seasonCount}}</span>
|
||||
{{else}}
|
||||
<span class="label label-info">{{seasonCount}} Seasons</span>
|
||||
{{/if}}
|
||||
{{/if_eq}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -60,7 +60,8 @@ define(
|
|||
label : 'Episodes',
|
||||
sortable: false,
|
||||
template: 'Series/EpisodeProgressTemplate',
|
||||
cell : TemplatedCell
|
||||
cell : TemplatedCell,
|
||||
className: 'episode-progress-cell'
|
||||
},
|
||||
{
|
||||
name : 'this',
|
||||
|
@ -189,8 +190,7 @@ define(
|
|||
title : '',
|
||||
icon : 'icon-table',
|
||||
callback: this._showTable
|
||||
},
|
||||
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue