mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
change it so the tracker error filter doesn't have an icon
This commit is contained in:
parent
03dac27147
commit
793e120957
1 changed files with 10 additions and 2 deletions
|
@ -349,13 +349,21 @@ Deluge.SideBar = {
|
||||||
renderer: function(value, p, r) {
|
renderer: function(value, p, r) {
|
||||||
var lname = value.toLowerCase().replace('.', '_');
|
var lname = value.toLowerCase().replace('.', '_');
|
||||||
|
|
||||||
var image = '';
|
var image = '';
|
||||||
if (r.store.id == 'tracker_host') {
|
if (r.store.id == 'tracker_host') {
|
||||||
if (value != 'Error') {
|
if (value != 'Error') {
|
||||||
image = String.format('url(/tracker/{0})', value);
|
image = String.format('url(/tracker/{0})', value);
|
||||||
|
} else {
|
||||||
|
lname = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return String.format('<div class="x-deluge-filter x-deluge-{2}" style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname, image);
|
if (image) {
|
||||||
|
return String.format('<div class="x-deluge-filter" style="background-image: {2};">{0} ({1})</div>', value, r.data['count'], image);
|
||||||
|
} else if (lname) {
|
||||||
|
return String.format('<div class="x-deluge-filter x-deluge-{2}">{0} ({1})</div>', value, r.data['count'], lname);
|
||||||
|
} else {
|
||||||
|
return String.format('<div class="x-deluge-filter">{0} ({1})</div>', value, r.data['count']);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getFilters: function() {
|
getFilters: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue