parent
5bfcc511e8
commit
9ba0623987
@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backgrid',
|
||||
'moment',
|
||||
'Shared/FormatHelpers'
|
||||
], function (Backgrid, Moment, FormatHelpers) {
|
||||
return Backgrid.Cell.extend({
|
||||
className: 'air-date-cell',
|
||||
|
||||
render: function () {
|
||||
|
||||
this.$el.empty();
|
||||
var date = this.model.get(this.column.get('name'));
|
||||
|
||||
if (date) {
|
||||
this.$el.html(FormatHelpers.DateHelper(date));
|
||||
|
||||
this.$el.attr('title', Moment(date).format('LLLL'));
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
}
|
||||
});
|
||||
});
|
@ -0,0 +1,15 @@
|
||||
{{#if_eq episodeFileCount compare=episodeCount}}
|
||||
{{#if_eq status compare="continuing"}}
|
||||
<div class="progress">
|
||||
{{else}}
|
||||
<div class="progress progress-success">
|
||||
{{/if_eq}}
|
||||
|
||||
{{else}}
|
||||
<div class="progress progress-danger">
|
||||
{{/if_eq}}
|
||||
|
||||
<span class="progressbar-back-text">{{episodeFileCount}} / {{episodeCount}}</span>
|
||||
|
||||
<div class="bar" style="width:{{percentOfEpisodes}}%"><span class="progressbar-front-text">{{episodeFileCount}} / {{episodeCount}}</span></div>
|
||||
</div>
|
Loading…
Reference in new issue