Skip to content

Commit

Permalink
fix(library): Single annotation view now shows its tags again
Browse files Browse the repository at this point in the history
It appears a refector in
48caa9d#diff-9ea4b22c959cae1e6c3986866011f033
changed the type of data recieved by these objects and this was the
result.

Fixes #291
  • Loading branch information
atruskie committed Feb 10, 2017
1 parent 7a678bf commit bed39f2
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/app/annotationLibrary/libraryItem.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,28 @@ <h3 class="panel-title pull-left">Details</h3>
</div>
<div class="panel-body">
<div class="list-group">
<a ng-if="annotation.tags.length > 0"
<a ng-if="annotation.taggings.length > 0"
class="list-group-item"
ng-repeat="tag in annotation.tags"
ng-href="{{tag.similarPartial}}"
ng-repeat="tagging in annotation.taggings"
ng-href="{{tagging.tag.similarPartial}}"
title="Tag.">
<span class="glyphicon glyphicon-tags"></span>&nbsp;
<span class="badge">{{tag.typeOfTag.replace('_',' ')}}</span>
<span class="badge" ng-show="tag.retired">retired</span>
<span class="badge" ng-show="tag.isTaxanomic">taxonomic</span>
{{tag.text}} (ID {{tag.id}})
<span class="badge">{{tagging.tag.typeOfTag.replace('_',' ')}}</span>
<span class="badge" ng-show="tagging.tag.retired">retired</span>
<span class="badge" ng-show="tagging.tag.isTaxanomic">taxonomic</span>
{{tagging.tag.text}} (ID {{tagging.tag.id}})
</a>
<span ng-if="annotation.tags.length == 0"
<span ng-if="annotation.taggings.length == 0"
class="list-group-item">
<span class="glyphicon glyphicon-tags"></span>&nbsp;
<small class="text-muted">no tags</small>
</span>
<span class="glyphicon glyphicon-tags"></span>&nbsp;
<small class="text-muted">no tags</small>
</span>

<a ng-show="annotation.isReference"
ng-href="{{annotation.urls.isReference}}"

class="list-group-item" title="Reference tag.">
class="list-group-item"
title="This is reference annotation - one that was nominated as an example of exceptional quality.">
<span class="glyphicon glyphicon-book"></span>&nbsp;
Reference Annotation
</a>
Expand Down

0 comments on commit bed39f2

Please sign in to comment.