mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Font-Awesomed Series/Details
New: Replaced icons with Font-Awesome SVG icons
This commit is contained in:
parent
008bb9626c
commit
f643c5e3fb
9 changed files with 77 additions and 34 deletions
|
@ -53,4 +53,32 @@
|
|||
dateFormat: "yy-mm-dd"
|
||||
});
|
||||
});
|
||||
|
||||
$('[data-status]').livequery(function () {
|
||||
var status = $(this).attr('data-status');
|
||||
|
||||
$(this).removeClass(function (index, css) {
|
||||
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
||||
});
|
||||
|
||||
if (status == 'Downloading') {
|
||||
$(this).addClass('icon-download-alt');
|
||||
}
|
||||
|
||||
if (status == 'Ready') {
|
||||
$(this).addClass('icon-play');
|
||||
}
|
||||
|
||||
if (status == 'AirsToday') {
|
||||
$(this).addClass('icon-time');
|
||||
}
|
||||
|
||||
if (status == 'NotAired') {
|
||||
$(this).addClass('icon-calendar');
|
||||
}
|
||||
|
||||
if (status == 'Missing') {
|
||||
$(this).addClass('icon-sign-blank');
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue