From 7661cea3790bc61e67055a06f6e3dd09b86b3c43 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Thu, 9 Jul 2020 11:34:09 +0200 Subject: [PATCH] Add icon before archived items --- app/views/repositories/_sidebar_list.html.erb | 3 +++ app/views/repositories/index.html.erb | 4 ++-- app/views/repositories/show.html.erb | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/_sidebar_list.html.erb b/app/views/repositories/_sidebar_list.html.erb index 5378f1073..342c54ad1 100644 --- a/app/views/repositories/_sidebar_list.html.erb +++ b/app/views/repositories/_sidebar_list.html.erb @@ -17,6 +17,9 @@ <%= link_to repository_path(repository), class: current_page?(repository_path(repository)) ? 'disabled line-wrap' : 'line-wrap', data: { 'no-turbolink' => 'true', type: 'repository', id: repository.id } do %> + <% if repository.archived? %> +   + <% end %> <%= repository.name %> <%= inventory_shared_status_icon(repository, current_team) %> <% end %> diff --git a/app/views/repositories/index.html.erb b/app/views/repositories/index.html.erb index 261bc5c55..ada7e225e 100644 --- a/app/views/repositories/index.html.erb +++ b/app/views/repositories/index.html.erb @@ -7,8 +7,8 @@ data-readonly="<%= !current_user.is_admin_of_team?(current_team) %>">

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

-

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

- <%= render layout: "shared/view_switch", locals: {disabled: false} do %> +

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

+ <%= render layout: "shared/view_switch", locals: { disabled: false } do %>
  • <%= t('libraries.index.switch_view.archived') %> diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index e47f1ac6c..d98ecce41 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -37,6 +37,7 @@ <% end %>
    <% if @repository.archived? %> +   <%= t('repositories.show.archived_inventory', repository_name: @repository.name) %> <% else %> <%= t('repositories.show.archived_inventory_items', repository_name: @repository.name) %>