Refactor and use first node start + quote + last node end for the context

This commit is contained in:
Amaia Castro
2017-02-13 09:53:36 +01:00
parent 6737d6afdd
commit 8e741a6b4f
2 changed files with 13 additions and 26 deletions

View File

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