mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
cleaned up template helpers
This commit is contained in:
10
UI/Handlebars/Helpers/Html.js
Normal file
10
UI/Handlebars/Helpers/Html.js
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'handlebars'
|
||||
], function (Handlebars) {
|
||||
Handlebars.registerHelper('defaultImg', function () {
|
||||
return new Handlebars.SafeString('onerror="this.src="/content/images/poster-dark.jpg";"');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user