From 41a53c32036260784159cd2d64be258588f3ef2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 15 Jan 2014 17:52:38 +0100 Subject: [PATCH] FEATURE: overridable template for adding custom buttons on the composer --- .../templates/additional_composer_buttons.js.handlebars | 1 + .../javascripts/discourse/templates/composer.js.handlebars | 1 + 2 files changed, 2 insertions(+) create mode 100644 app/assets/javascripts/discourse/templates/additional_composer_buttons.js.handlebars diff --git a/app/assets/javascripts/discourse/templates/additional_composer_buttons.js.handlebars b/app/assets/javascripts/discourse/templates/additional_composer_buttons.js.handlebars new file mode 100644 index 000000000..43ccd1b39 --- /dev/null +++ b/app/assets/javascripts/discourse/templates/additional_composer_buttons.js.handlebars @@ -0,0 +1 @@ +{{!-- THIS IS AN EMPTY TEMPLATE THAT NEEDS TO BE OVERWRITTEN --}} diff --git a/app/assets/javascripts/discourse/templates/composer.js.handlebars b/app/assets/javascripts/discourse/templates/composer.js.handlebars index d0c8c9bb4..bc0eb344f 100644 --- a/app/assets/javascripts/discourse/templates/composer.js.handlebars +++ b/app/assets/javascripts/discourse/templates/composer.js.handlebars @@ -51,6 +51,7 @@ {{#if model.showAdminOptions}} {{/if}} + {{render additionalComposerButtons model}} {{/unless}}