Fix checking of my_modules presence [SCI-1356]

This commit is contained in:
Oleksii Kriuchykhin 2017-06-27 13:39:08 +02:00
parent 4060ba2ac3
commit 69231060b0

View file

@ -27,7 +27,7 @@
<p> <p>
<span> <span>
<%=t "search.index.modules" %> <%=t "search.index.modules" %>
<% if repository_row.my_modules.count > 0 %> <% if repository_row.my_modules.any? %>
<% repository_row.my_modules.each_with_index do |mod, i| %> <% repository_row.my_modules.each_with_index do |mod, i| %>
<%= render partial: "search/results/partials/my_module_text.html.erb", <%= render partial: "search/results/partials/my_module_text.html.erb",
locals: { my_module: mod, link_to_page: :repositories, repository: repository } %> locals: { my_module: mod, link_to_page: :repositories, repository: repository } %>