Add context to annotation in index view

This commit is contained in:
Amaia Castro
2017-02-13 11:18:33 +01:00
parent 8e741a6b4f
commit 58b9135c71
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
<% end %>
</span>
<div class="comment-section">
<%= annotation.quote %>
<%= annotation.context.try(:html_safe).presence || annotation.quote %>
</div>
<%= link_to legislation_process_draft_version_annotation_path(@process, @draft_version, annotation) do %>
<span class="icon-comments" aria-hidden="true"></span> <span><%= t('.comments_count', count: annotation.comments_count) %></span></a>