common/corpus-common-addon/addon/templates/components/doc-location.hbs
author ymh <ymh.work@gmail.com>
Tue, 26 Sep 2017 21:41:49 +0200
changeset 550 fbd1bfc9f963
parent 502 74fba571487e
permissions -rw-r--r--
Improve label resolution in french for geonames.

{{#if isLocationLink}}
  {{#if onClick }}
    <span {{ action onClick }} title={{url}} class="bo-doc-ref-link doc-link-geonames">{{#if resolvedLabel}}{{resolvedLabel}}{{else}}{{code}}{{/if}}</span>
  {{else}}
    <a href="{{url}}" target="_blank" title="{{url}}" class="bo-doc-ref-link doc-link-geonames">
      {{#if resolvedLabel}}{{resolvedLabel}}{{else}}{{code}}{{/if}}
    </a>
  {{/if}}
  {{#if displayUrlLink}}<a href="{{url}}" target="_blank" title={{url}} class="bo-doc-ref-url doc-link-geonames-url">&nbsp;</a>{{/if}}
{{else}}
  {{#if resolvedLabel}}{{resolvedLabel}}{{else}}{{code}}{{/if}}
{{/if}}