Merge pull request #2719 from urbanrotnik/ur-sci-4806-missing-icon

Add icon before archived items [SCI-4806]
This commit is contained in:
Miha Mencin 2020-07-09 12:58:06 +02:00 committed by GitHub
commit b357d7c0e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -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? %>
<i class="fas fa-archive"></i>&nbsp;
<% end %>
<%= repository.name %>
<%= inventory_shared_status_icon(repository, current_team) %>
<% end %>

View file

@ -7,8 +7,8 @@
data-readonly="<%= !current_user.is_admin_of_team?(current_team) %>">
<div class="content-header">
<h1 data-view-mode="active"><%= t('libraries.index.head_title') %></h1>
<h1 data-view-mode="archived"><%= t('libraries.index.head_title_archived') %></h1>
<%= render layout: "shared/view_switch", locals: {disabled: false} do %>
<h1 data-view-mode="archived"><i class="fas fa-archive"></i>&nbsp;<%= t('libraries.index.head_title_archived') %></h1>
<%= render layout: "shared/view_switch", locals: { disabled: false } do %>
<li class="view-switch-archived" data-view-mode="active">
<i class="fas fa-archive button-icon"></i>
<%= t('libraries.index.switch_view.archived') %>

View file

@ -37,6 +37,7 @@
<% end %>
<div class="repository-archived-title-name" data-view-mode="archived">
<% if @repository.archived? %>
<i class="fas fa-archive"></i>&nbsp;
<%= t('repositories.show.archived_inventory', repository_name: @repository.name) %>
<% else %>
<%= t('repositories.show.archived_inventory_items', repository_name: @repository.name) %>