From: Wolfram Schneider Date: Thu, 11 Dec 2014 17:52:43 +0000 (+0000) Subject: configurable credit for reference widget, MKWS-344 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f02e73a67171b046574551968e6bff8fa8805aa3;p=mkws-moved-to-github.git configurable credit for reference widget, MKWS-344 e.g.:
Loading..
--- 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}}