common/corpus-common-addon/addon/templates/components/doc-location.hbs
author ymh <ymh.work@gmail.com>
Wed, 22 Feb 2017 17:58:25 +0100
changeset 521 b3c738a20af8
parent 502 74fba571487e
permissions -rw-r--r--
Add transcript right declaration, resolve bug #0026452

{{#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}}