common/corpus-common-addon/addon/templates/components/doc-subject.hbs
author ymh <ymh.work@gmail.com>
Thu, 02 Jun 2016 18:24:19 +0200
changeset 168 17f10b56c079
parent 134 c06d08c8a1b8
child 304 20071981ba2a
permissions -rw-r--r--
improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning

{{#if isSubjectLink}}
<a href="{{url}}" target="_blank" title={{resolvedLabel}} class="bo-doc-ref-link doc-link-bnf">
  {{#if resolvedLabel}}{{resolvedLabel}}{{else}}{{code}}{{/if}}
</a>
{{else}}
{{#if resolvedLabel}}{{resolvedLabel}}{{else}}{{code}}{{/if}}
{{/if}}