From 1edeabdaa8861e149cd7f76f58d97aa127117f79 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Tue, 17 Oct 2017 09:27:47 +0300 Subject: merged mode: tags -> termTags (inside expressions) --- ext/bg/js/templates.js | 4 ++-- ext/bg/js/translator.js | 2 +- tmpl/terms.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 5b5e63f5..d2aa1ee0 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -320,7 +320,7 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia if (stack1 != null) { buffer += stack1; } return buffer + "
" + ((stack1 = helpers["if"].call(alias1,(depths[1] != null ? depths[1].playback : depths[1]),{"name":"if","hash":{},"fn":container.program(33, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") - + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.tags : depth0),{"name":"if","hash":{},"fn":container.program(35, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.termTags : depth0),{"name":"if","hash":{},"fn":container.program(35, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.frequencies : depth0),{"name":"if","hash":{},"fn":container.program(38, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "
" - + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.tags : depth0),{"name":"each","hash":{},"fn":container.program(36, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.termTags : depth0),{"name":"each","hash":{},"fn":container.program(36, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + " \n"; },"36":function(container,depth0,helpers,partials,data) { var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression; diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 29bb857b..bf347343 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -112,7 +112,7 @@ class Translator { expressions.push({ expression: expression, reading: reading, - tags: dictTagsSort(tags), + termTags: dictTagsSort(tags), jmdictTermFrequency: (tags => { if (tags.has('P')) { return 'popular'; diff --git a/tmpl/terms.html b/tmpl/terms.html index 7a464cba..c83a4b15 100644 --- a/tmpl/terms.html +++ b/tmpl/terms.html @@ -50,9 +50,9 @@ {{~#if ../playback~}} {{/if}} - {{~#if tags~}} + {{~#if termTags~}}
- {{~#each tags~}} + {{~#each termTags~}} {{name}} {{/each}}
-- cgit v1.2.3