From e9d9f613fbe90d7a7f76bc20fdb4860b450e1d2b Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Fri, 11 Nov 2022 14:22:26 +0400 Subject: [PATCH] updated old code version in empty_index --- app/views/repositories/empty_index.html.erb | 78 ++++++++++----------- 1 file changed, 39 insertions(+), 39 deletions(-) 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 %> -
- -
- <%= t('repositories.index.sidebar_instructions') %> + <% provide(:sidebar_url, sidebar_repositories_path) %> + <% provide(:sidebar_title, t('sidebar.repositories.sidebar_title')) %> + <%= content_for :sidebar do %> +
+
    +
  • <%= t('repositories.index.sidebar_repo1') %>
  • +
  • <%= t('repositories.index.sidebar_repo2') %><%= draw_custom_icon('i-shared') %>
  • +
  • <%= t('repositories.index.sidebar_repo3') %>
  • +
+
+ <%= t('repositories.index.sidebar_instructions') %> +
+
+ <% end %> + + <%= render "view_archived_btn" %> + +
+
+ <%= image_tag('/images/empty_inventory_state.png', class: 'empty-inventory-img') %> +

+ <%= t('repositories.index.empty_title') %> +

+ <% if can_create_repositories?(current_team) %> +
<%= t('repositories.index.empty_description_with_create') %>
+ + + + + <% else %> +
<%= t('repositories.index.empty_description_no_create') %>
+ <% end %>
+ + <%= javascript_include_tag 'repositories/index' %> <% end %> - -<%= render "view_archived_btn" %> - -
-
-

<%= t('libraries.index.head_title') %>

-
-
- <%= image_tag('/images/empty_inventory_state.png', class: 'empty-inventory-img') %> -

- <%= t('repositories.index.empty_title') %> -

- <% if can_create_repositories?(current_team) %> -
<%= t('repositories.index.empty_description_with_create') %>
- - - - - <% else %> -
<%= t('repositories.index.empty_description_no_create') %>
- <% end %> -
-
- -<%= javascript_include_tag 'repositories/index' %> -