diff --git a/app/views/my_modules/archive.html.erb b/app/views/my_modules/archive.html.erb index 21dce5ff1..5b5bed9bd 100644 --- a/app/views/my_modules/archive.html.erb +++ b/app/views/my_modules/archive.html.erb @@ -3,22 +3,19 @@ <%= render partial: "shared/secondary_navigation" %>
-
-
- <% i = 0 %> +
+ <% if @archived_results.any? %> <% @archived_results.each do |result| %> - <%= render partial: "my_modules/archive/result.html.erb", locals: { result: result } %> - <% i = i + 1 %> +
+ <%= render partial: "my_modules/archive/result.html.erb", locals: { result: result } %> +
<% end %> -
-
- <% if i == 0 %> -
+ <% else %>
<%=t "my_modules.module_archive.no_archived_results" %>
-
- <% end %> + <% end %> +