app/views/partials/note/_note.html.erb in iqvoc-4.9.0 vs app/views/partials/note/_note.html.erb in iqvoc-4.10.0
- old
+ new
@@ -1,9 +1,12 @@
<% unless note.new_record? %>
<div class="translation" lang="<%= note.language %>">
<span class="language_flap"><%= note.language %></span>
<div class="note_content">
- <p><%= auto_link(note.value, :html => { :target => '_blank' }) %></p>
+ <% if note.value %>
+ <p><%= auto_link(note.value, :html => { :target => '_blank' }) %></p>
+ <% end %>
+
<% if note.annotations.any? %>
<dl class="note_annotations">
<% note.annotations.each do |annotation| %>
<dt><%= annotation.identifier %></dt>
<dd><%= auto_link(annotation.value, :html => { :target => '_blank' }) %></dd>