diff --git a/static/js/templates.js b/static/js/templates.js index 0ad0bbbc18..850040b44e 100644 --- a/static/js/templates.js +++ b/static/js/templates.js @@ -79,6 +79,13 @@ Handlebars.registerHelper('if_or', function () { return options.inverse(this); }); +Handlebars.registerHelper('is_false', function (variable, options) { + if (variable === false) { + return options.fn(this); + } + return options.inverse(this); +}); + Handlebars.registerHelper('t', function (i18n_key) { // Marks a string for translation. // Example usage: