|
|
@ -21,8 +21,17 @@ define(
|
|
|
|
var hasFile = this.model.get('hasFile');
|
|
|
|
var hasFile = this.model.get('hasFile');
|
|
|
|
|
|
|
|
|
|
|
|
if (hasFile) {
|
|
|
|
if (hasFile) {
|
|
|
|
icon = 'icon-ok';
|
|
|
|
var quality = this.model.get('episodeFile').quality;
|
|
|
|
tooltip = 'Episode downloaded';
|
|
|
|
|
|
|
|
|
|
|
|
if (quality.proper) {
|
|
|
|
|
|
|
|
this.$el.html('<span class="badge badge-info" title="Episode downloaded [PROPER]">{0}</span>'.format(quality.quality.name));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
this.$el.html('<span class="badge badge-inverse" title="Episode downloaded">{0}</span>'.format(quality.quality.name));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if (!this.model.get('airDate')) {
|
|
|
|
if (!this.model.get('airDate')) {
|
|
|
|