common/corpus-common-addon/addon/templates/components/doc-location.hbs
author ymh <ymh.work@gmail.com>
Wed, 08 Feb 2017 15:25:24 +0100
changeset 502 74fba571487e
parent 492 acecbffac2c4
permissions -rw-r--r--
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746

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