common/corpus-common-addon/addon/templates/components/doc-language.hbs
author ymh <ymh.work@gmail.com>
Tue, 11 Oct 2016 02:49:59 +0200
changeset 326 226d5b17a119
parent 304 20071981ba2a
child 429 4a0fc5c5f420
permissions -rw-r--r--
- First implementation of filter for languages. - Language is now an array in the document - various corrections linked to the above change - Simplify the IndexDocumet loop

{{#if isLanguageLink}}
<a href="{{url}}" target="_blank" title={{url}} class="bo-doc-ref-link doc-link-lexvo">
  {{#if resolvedName}}{{resolvedName}}{{else}}{{code}}{{/if}}
</a>
{{else}}
{{#if resolvedName}}{{resolvedName}}{{else}}{{code}}{{/if}}
{{/if}}