From e85525d448e968109a67f5988f3b57e92bc54ce9 Mon Sep 17 00:00:00 2001 From: Sumeet Adur Date: Wed, 2 Dec 2015 16:54:14 +0000 Subject: [PATCH] use source url on label for usage example. changed 'Translation' to 'Translation to plain English'. changed heading link to work with base tag --- client/definition-page.hbs | 14 +++++++------- client/main-page.hbs | 2 +- gulpfile.babel.js | 3 +-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/client/definition-page.hbs b/client/definition-page.hbs index 31d76ae..d3dabdb 100755 --- a/client/definition-page.hbs +++ b/client/definition-page.hbs @@ -1,6 +1,6 @@ {{> top }}
-

Guffipedia

+

Guffipedia

Lucy Kellaway's dictionary of business jargon and corporate nonsense
@@ -14,22 +14,22 @@
{{#if definition}} -

Translation - {{definition}}

+

Translation {{definition}}

{{/if}} {{#if showPerpetratorData}}

Perpetrator {{/if}} - {{#if sourceurl}}{{/if}} {{#if perpetrator}}{{perpetrator}}{{/if}}{{#if perpetrator}}{{#if usagesource}}, {{/if}}{{/if}}{{#if usagesource}}{{usagesource}}{{/if}} - {{#unless perpetrator}}{{#unless usagesource}}{{#if sourceurl}}{{sourceurl}}{{/if}}{{/unless}}{{/unless}} - {{#if sourceurl}}{{/if}} {{#if showPerpetratorData}}

{{/if}} {{#if usageexample}}

- Usage example + + {{#if sourceurl}}{{/if}} + Usage example + {{#if sourceurl}}{{/if}} + {{usageexample}}

{{/if}} diff --git a/client/main-page.hbs b/client/main-page.hbs index ea0b456..c3f8e1d 100644 --- a/client/main-page.hbs +++ b/client/main-page.hbs @@ -15,7 +15,7 @@ {{word}}
{{#if definition}} -

Translation +

Translation into plain English {{definition}}

{{/if}} {{#if usageexample}} diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 2d77b7f..85bdfe7 100755 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -297,8 +297,7 @@ gulp.task('download-data', () => fetch(SPREADSHEET_URL) }; words[currentSlug].showPerpetratorData = words[currentSlug].perpetrator - || words[currentSlug].usagesource - || words[currentSlug].sourceurl ? true : null; + || words[currentSlug].usagesource ? true : null; } fs.writeFileSync('client/words.json', JSON.stringify(words, null, 2));