You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
770 B
35 lines
770 B
12 years ago
|
"use strict";
|
||
|
|
||
12 years ago
|
define(['app' ], function () {
|
||
|
NzbDrone.Cells.EpisodeStatusCell = Backgrid.Cell.extend({
|
||
12 years ago
|
|
||
12 years ago
|
className: 'episode-status-cell',
|
||
|
|
||
12 years ago
|
render: function () {
|
||
|
this.$el.empty();
|
||
12 years ago
|
|
||
|
if (this.model) {
|
||
|
|
||
|
var icon;
|
||
|
|
||
|
if (this.model.get('episodeFile')) {
|
||
|
icon = 'icon-ok';
|
||
|
|
||
|
}
|
||
12 years ago
|
else {
|
||
|
if (this.model.get('hasAired')) {
|
||
|
icon = 'icon-warning-sign';
|
||
|
}
|
||
|
else {
|
||
|
icon = 'icon-time';
|
||
|
}
|
||
|
}
|
||
12 years ago
|
|
||
|
this.$el.html('<i class="{0}"/>'.format(icon));
|
||
|
}
|
||
|
|
||
12 years ago
|
return this;
|
||
|
}
|
||
|
});
|
||
|
});
|