diff --git a/app/views/templates/show.html.erb b/app/views/templates/show.html.erb
index 509a8fc7..67101c1c 100644
--- a/app/views/templates/show.html.erb
+++ b/app/views/templates/show.html.erb
@@ -57,20 +57,6 @@
<%= render partial: 'submission', collection: @submissions, locals: { template: @template } %>
- <% view_archived_html = capture do %>
- <% if @template.submissions.where.not(archived_at: nil).exists? && !@template.archived_at? %>
-
- <% end %>
- <% end %>
- <% if @pagy.pages > 1 %>
- <%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions', left_additional_html: view_archived_html %>
- <% else %>
-
- <%= view_archived_html %>
-
- <% end %>
<% else %>
<% end %>
+<% view_archived_html = capture do %>
+ <% if @template.submissions.where.not(archived_at: nil).exists? && !@template.archived_at? %>
+
+ <% end %>
+<% end %>
+<% if @pagy.pages > 1 %>
+ <%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions', left_additional_html: view_archived_html %>
+<% else %>
+
+ <%= view_archived_html %>
+
+<% end %>