From f3ab7673f98f8721030d5513459e5e842b812e80 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 13 Oct 2019 21:50:29 +0300 Subject: add css class for dictionary name Can be used for dictionary specific styling --- tmpl/terms.html | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'tmpl') diff --git a/tmpl/terms.html b/tmpl/terms.html index 0b967bb5..3dee43d7 100644 --- a/tmpl/terms.html +++ b/tmpl/terms.html @@ -1,29 +1,31 @@ {{#*inline "definition"}} -{{#if definitionTags}} -
- {{#each definitionTags}} - {{name}} - {{/each}} -
-{{/if}} -{{#if only}} -
- ( - {{~#each only~}} - {{{.}}}{{#unless @last}}, {{/unless}} - {{/each}} - only) +
+ {{#if definitionTags}} +
+ {{#each definitionTags}} + {{name}} + {{/each}} +
+ {{/if}} + {{#if only}} +
+ ( + {{~#each only~}} + {{{.}}}{{#unless @last}}, {{/unless}} + {{/each}} + only) +
+ {{/if}} + {{#if glossary.[1]}} +
    + {{#each glossary}} +
  • {{#multiLine}}{{.}}{{/multiLine}}
  • + {{/each}} +
+ {{else}} +
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
+ {{/if}}
-{{/if}} -{{#if glossary.[1]}} - -{{else}} -
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
-{{/if}} {{/inline}} {{#*inline "term"}} -- cgit v1.2.3