app/views/partials/note/_note.html.erb in iqvoc-3.5.7 vs app/views/partials/note/_note.html.erb in iqvoc-4.0.0
- old
+ new
@@ -1,14 +1,16 @@
<% unless note.new_record? %>
- <%= content_tag("div", { :class => "translation", :lang => note.language || nil }, true) do %>
- <div class="note_language <%= note.language %>">
- (<%= note.language || '-' %>)
- </div>
- <span><%= auto_link(note.value, :html => { :target => '_blank' }) %></span>
- <dl class="note_annotations">
- <% note.annotations.each do |annotation| %>
- <dt><%= annotation.identifier %></dt>
- <dd><%= auto_link(annotation.value, :html => { :target => '_blank' }) %></dd>
+ <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.annotations.any? %>
+ <dl class="note_annotations">
+ <% note.annotations.each do |annotation| %>
+ <dt><%= annotation.identifier %></dt>
+ <dd><%= auto_link(annotation.value, :html => { :target => '_blank' }) %></dd>
+ <% end %>
+ </dl>
<% end %>
- </dl>
- <% end %>
+ </div><!-- /.note_content -->
+ </div><!-- /.translation -->
<% end %>