mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
added placeholder image for missing posters.
This commit is contained in:
parent
f94ea0e78a
commit
4015984900
6 changed files with 20 additions and 8 deletions
|
@ -8,7 +8,7 @@ define(['app'], function () {
|
|||
return new Handlebars.SafeString(templateFunction(this));
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("debug", function(optionalValue) {
|
||||
Handlebars.registerHelper("debug", function (optionalValue) {
|
||||
console.log("Current Context");
|
||||
console.log("====================");
|
||||
console.log(this);
|
||||
|
@ -20,11 +20,11 @@ define(['app'], function () {
|
|||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("fileSize", function(size) {
|
||||
Handlebars.registerHelper("fileSize", function (size) {
|
||||
return NzbDrone.Shared.FormatHelpers.FileSizeHelper(size);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("date", function(date) {
|
||||
Handlebars.registerHelper("date", function (date) {
|
||||
//TODO: show actual date in tooltip
|
||||
if (!date) {
|
||||
return '';
|
||||
|
@ -36,4 +36,8 @@ define(['app'], function () {
|
|||
|
||||
return new Handlebars.SafeString(result);
|
||||
});
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('defaultImg', function () {
|
||||
return new Handlebars.SafeString(' onerror="this.src=\'/content/images/poster-dark.jpg\';"');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue