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:
Mark McDowall 2013-07-16 23:23:44 -07:00
commit 207d9c256d
21 changed files with 296 additions and 9100 deletions

View file

@ -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));
}
},

View file

@ -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}}

View file

@ -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>

View file

@ -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
},
}
]
};