app/views/concepts/untranslated/index.html.erb in iqvoc-3.3.4 vs app/views/concepts/untranslated/index.html.erb in iqvoc-3.4.0
- old
+ new
@@ -3,11 +3,11 @@
<% if I18n.locale != Iqvoc::Concept.pref_labeling_languages.first %>
<%= letter_selector { |letter| untranslated_concepts_path(:letter => letter.to_s.downcase) } %>
<ul>
- <% for label in @labels %>
+ <% @labels.each do |label| %>
<li>
<% if label.pref_labeled_concepts.length > 1 %>
<%= label.value %>:
<% for concept in label.pref_labeled_concepts %>
<%= link_to concept.origin, concept_path(concept) %>
@@ -17,7 +17,7 @@
<% end %>
</li>
<% end %>
</ul>
- <%= paginate @labels %>
+ <%= paginate @labels if @labels.present? %>
<% end %>