From f02e73a67171b046574551968e6bff8fa8805aa3 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 11 Dec 2014 17:52:43 +0000 Subject: [PATCH] configurable credit for reference widget, MKWS-344 e.g.:
Loading..
--- src/mkws-widget-reference.js | 1 + src/templates/reference.handlebars | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js index 85c04b8..59da6e7 100644 --- a/src/mkws-widget-reference.js +++ b/src/mkws-widget-reference.js @@ -4,4 +4,5 @@ mkws.registerWidgetType('reference', function() { if (!this.config.template) this.config.template = 'reference'; this.config.template_vars.paragraphs = this.config.paragraphs || 0; this.config.template_vars.sentences = this.config.sentences || 0; + this.config.template_vars.credit = this.config.credit || "Wikipedia"; }); diff --git a/src/templates/reference.handlebars b/src/templates/reference.handlebars index cedad80..831be44 100644 --- a/src/templates/reference.handlebars +++ b/src/templates/reference.handlebars @@ -14,4 +14,4 @@ md-* - metadata fields passed through from backend {{md-title-responsibility}} {{/if}} {{{mkws-paragraphs md-description paragraphs sentences}}} -

Wikipedia

+

{{credit}}

-- 1.7.10.4