projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5231c26
)
Fix SUP-725.
author
Mike Taylor
<mike@indexdata.com>
Tue, 10 Mar 2015 12:02:53 +0000
(12:02 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 10 Mar 2015 12:02:53 +0000
(12:02 +0000)
When the wikipedia widget finds no records, emit a "Not found in
Wikipedia" message rather than a blank widget with a meaningless
"Source: Wikipedia" attribution.
src/templates/wikipedia.handlebars
patch
|
blob
|
history
diff --git
a/src/templates/wikipedia.handlebars
b/src/templates/wikipedia.handlebars
index
0400cae
..
c7a88d9
100644
(file)
--- a/
src/templates/wikipedia.handlebars
+++ b/
src/templates/wikipedia.handlebars
@@
-6,6
+6,7
@@
paragraphs - number of paragraphs to include
md-* - metadata fields passed through from backend
}}
+{{#if md-title}}
<!--
display only the first image
@@
-33,3
+34,6
@@
display only the first image
{{/if}}
{{{mkws-paragraphs md-description paragraphs sentences}}}
<p class="mkws-credit mkwsCredit">{{credit}}</p>
+{{else}}
+<p>Not found in Wikipedia.</p>
+{{/if}}