aboutsummaryrefslogtreecommitdiff
path: root/tmpl/terms.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2019-10-20 11:23:20 -0700
committerAlex Yatskov <alex@foosoft.net>2019-10-20 11:23:20 -0700
commit438498435227cfa59cf9ed3430045b288cd2a7c0 (patch)
tree6a05520e5d6fa8d26d372673a9ed3e5d2da7e3fd /tmpl/terms.html
parent06d7713189be9eb51669d3842b78278371e6cfa4 (diff)
parentd32fd1381b6cd5141a21c22f9ef639b2fe9774fb (diff)
Merge branch 'master' into testing
Diffstat (limited to 'tmpl/terms.html')
-rw-r--r--tmpl/terms.html50
1 files changed, 26 insertions, 24 deletions
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}}
-<div {{#if compactGlossaries}}class="compact-info"{{/if}}>
- {{#each definitionTags}}
- <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
- {{/each}}
-</div>
-{{/if}}
-{{#if only}}
-<div {{#if compactGlossaries}}class="compact-info"{{/if}}>
- (
- {{~#each only~}}
- {{{.}}}{{#unless @last}}, {{/unless}}
- {{/each}}
- only)
+<div class="dict-{{#sanitizeCssClass}}{{dictionary}}{{/sanitizeCssClass}}">
+ {{#if definitionTags}}
+ <div {{#if compactGlossaries}}class="compact-info"{{/if}}>
+ {{#each definitionTags}}
+ <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
+ {{/each}}
+ </div>
+ {{/if}}
+ {{#if only}}
+ <div {{#if compactGlossaries}}class="compact-info"{{/if}}>
+ (
+ {{~#each only~}}
+ {{{.}}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ only)
+ </div>
+ {{/if}}
+ {{#if glossary.[1]}}
+ <ul {{#if compactGlossaries}}class="compact-glossary"{{/if}}>
+ {{#each glossary}}
+ <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
+ {{/each}}
+ </ul>
+ {{else}}
+ <div class="glossary-item {{#if compactGlossaries}}compact-glossary{{/if}}">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
+ {{/if}}
</div>
-{{/if}}
-{{#if glossary.[1]}}
-<ul {{#if compactGlossaries}}class="compact-glossary"{{/if}}>
- {{#each glossary}}
- <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
- {{/each}}
-</ul>
-{{else}}
-<div class="glossary-item {{#if compactGlossaries}}compact-glossary{{/if}}">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
-{{/if}}
{{/inline}}
{{#*inline "term"}}