mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-16 21:16:24 -04:00
Upgraded to FontAwesome 4.3.0
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = Backgrid.Cell.extend({
|
||||
this.templateFunction = Marionette.TemplateCache.get(this.template);
|
||||
|
||||
var html = this.templateFunction(rejections);
|
||||
this.$el.html('<i class="icon-exclamation-sign"/>');
|
||||
this.$el.html('<i class="icon-sonarr-form-danger"/>');
|
||||
|
||||
this.$el.popover({
|
||||
content : html,
|
||||
|
||||
@@ -10,7 +10,7 @@ module.exports = Backgrid.Cell.extend({
|
||||
|
||||
render : function() {
|
||||
this.$el.empty();
|
||||
this.$el.html('<i class="icon-nd-delete"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-delete"></i>');
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ module.exports = NzbDroneCell.extend({
|
||||
render : function() {
|
||||
this.$el.empty();
|
||||
|
||||
this.$el.html('<i class="icon-search x-automatic-search" title="Automatic Search"></i>' + '<i class="icon-nd-manual-search x-manual-search" title="Manual Search"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-search x-automatic-search" title="Automatic Search"></i>' + '<i class="icon-sonarr-search-manual x-manual-search" title="Manual Search"></i>');
|
||||
|
||||
CommandController.bindToCommand({
|
||||
element : this.$el.find('.x-automatic-search'),
|
||||
|
||||
@@ -69,7 +69,7 @@ module.exports = NzbDroneCell.extend({
|
||||
var progress = 100 - (downloading.get('sizeleft') / downloading.get('size') * 100);
|
||||
|
||||
if (progress === 0) {
|
||||
icon = 'icon-nd-downloading';
|
||||
icon = 'icon-sonarr-downloading';
|
||||
tooltip = 'Episode is downloading';
|
||||
}
|
||||
|
||||
@@ -81,20 +81,20 @@ module.exports = NzbDroneCell.extend({
|
||||
}
|
||||
|
||||
else if (this.model.get('grabbed')) {
|
||||
icon = 'icon-nd-downloading';
|
||||
icon = 'icon-sonarr-downloading';
|
||||
tooltip = 'Episode is downloading';
|
||||
}
|
||||
|
||||
else if (!this.model.get('airDateUtc')) {
|
||||
icon = 'icon-nd-tba';
|
||||
icon = 'icon-sonarr-tba';
|
||||
tooltip = 'TBA';
|
||||
}
|
||||
|
||||
else if (hasAired) {
|
||||
icon = 'icon-nd-missing';
|
||||
icon = 'icon-sonarr-missing';
|
||||
tooltip = 'Episode missing from disk';
|
||||
} else {
|
||||
icon = 'icon-nd-not-aired';
|
||||
icon = 'icon-sonarr-not-aired';
|
||||
tooltip = 'Episode has not aired';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,27 +12,27 @@ module.exports = NzbDroneCell.extend({
|
||||
|
||||
switch (this.cellValue.get('eventType')) {
|
||||
case 'grabbed':
|
||||
icon = 'icon-nd-downloading';
|
||||
icon = 'icon-sonarr-downloading';
|
||||
toolTip = 'Episode grabbed from {0} and sent to download client'.format(this.cellValue.get('data').indexer);
|
||||
break;
|
||||
case 'seriesFolderImported':
|
||||
icon = 'icon-hdd';
|
||||
icon = 'icon-sonarr-hdd';
|
||||
toolTip = 'Existing episode file added to library';
|
||||
break;
|
||||
case 'downloadFolderImported':
|
||||
icon = 'icon-nd-imported';
|
||||
icon = 'icon-sonarr-imported';
|
||||
toolTip = 'Episode downloaded successfully and picked up from download client';
|
||||
break;
|
||||
case 'downloadFailed':
|
||||
icon = 'icon-nd-download-failed';
|
||||
icon = 'icon-sonarr-download-failed';
|
||||
toolTip = 'Episode download failed';
|
||||
break;
|
||||
case 'episodeFileDeleted':
|
||||
icon = 'icon-nd-deleted';
|
||||
icon = 'icon-sonarr-deleted';
|
||||
toolTip = 'Episode file deleted';
|
||||
break;
|
||||
default:
|
||||
icon = 'icon-question';
|
||||
icon = 'icon-sonarr-unknown';
|
||||
toolTip = 'unknown event';
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ module.exports = NzbDroneCell.extend({
|
||||
render : function() {
|
||||
this.$el.empty();
|
||||
|
||||
this.$el.html('<i class="icon-refresh x-refresh hidden-xs" title="" data-original-title="Update series info and scan disk"></i> ' +
|
||||
'<i class="icon-nd-edit x-edit" title="" data-original-title="Edit Series"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-refresh x-refresh hidden-xs" title="" data-original-title="Update series info and scan disk"></i> ' +
|
||||
'<i class="icon-sonarr-edit x-edit" title="" data-original-title="Edit Series"></i>');
|
||||
|
||||
CommandController.bindToCommand({
|
||||
element : this.$el.find('.x-refresh'),
|
||||
|
||||
@@ -9,17 +9,17 @@ module.exports = NzbDroneCell.extend({
|
||||
var status = this.model.get('status');
|
||||
|
||||
if (status === 'ended') {
|
||||
this.$el.html('<i class="icon-stop grid-icon" title="Ended"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-series-ended grid-icon" title="Ended"></i>');
|
||||
this._setStatusWeight(3);
|
||||
}
|
||||
|
||||
else if (!monitored) {
|
||||
this.$el.html('<i class="icon-pause grid-icon" title="Not Monitored"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-series-unmonitored grid-icon" title="Not Monitored"></i>');
|
||||
this._setStatusWeight(2);
|
||||
}
|
||||
|
||||
else {
|
||||
this.$el.html('<i class="icon-play grid-icon" title="Continuing"></i>');
|
||||
this.$el.html('<i class="icon-sonarr-series-continuing grid-icon" title="Continuing"></i>');
|
||||
this._setStatusWeight(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ module.exports = Backgrid.Cell.extend({
|
||||
var name = this.column.get('name');
|
||||
this.model.set(name, !this.model.get(name));
|
||||
|
||||
this.$('i').addClass('icon-spinner icon-spin');
|
||||
this.$('i').addClass('icon-sonarr-spinner fa-spin');
|
||||
|
||||
this.model.save().always(function() {
|
||||
self.render();
|
||||
|
||||
Reference in New Issue
Block a user