Show annotation context in annotation page

Only works with quotes within the same html node for now
This commit is contained in:
Amaia Castro
2017-02-10 10:42:21 +01:00
parent faa6cb90ed
commit b298fb7316
7 changed files with 71 additions and 43 deletions

View File

@@ -15,7 +15,7 @@
<div class="comment-section">
<div class="row">
<div class="small-12 medium-10 column legislation-comment">
<%= @annotation.quote %>
<%= @annotation.context.html_safe || @annotation.quote %>
</div>
<div class="small-12 medium-2 column legislation-comment">
<span class="pull-right">