diff --git a/app/views/repositories/empty_index.html.erb b/app/views/repositories/empty_index.html.erb index 88f57d0d2..263d93594 100644 --- a/app/views/repositories/empty_index.html.erb +++ b/app/views/repositories/empty_index.html.erb @@ -1,43 +1,43 @@ -<% provide(:head_title, t('libraries.index.head_title')) %> -<% provide(:container_class, 'no-second-nav-container') %> +<% if @repositories.unscope(where: :archived).present? %> + <%= render template: "repositories/index.html.erb" %> +<% else %> + <% provide(:head_title, t('libraries.index.head_title')) %> + <% provide(:container_class, 'no-second-nav-container') %> -<% provide(:sidebar_url, sidebar_repositories_path) %> -<% provide(:sidebar_title, t('sidebar.repositories.sidebar_title')) %> -<%= content_for :sidebar do %> -