mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #2719 from urbanrotnik/ur-sci-4806-missing-icon
Add icon before archived items [SCI-4806]
This commit is contained in:
commit
b357d7c0e6
3 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
<% end %>
|
||||
<%= repository.name %>
|
||||
<%= inventory_shared_status_icon(repository, current_team) %>
|
||||
<% end %>
|
||||
|
|
|
@ -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> <%= 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') %>
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
<% end %>
|
||||
<div class="repository-archived-title-name" data-view-mode="archived">
|
||||
<% if @repository.archived? %>
|
||||
<i class="fas fa-archive"></i>
|
||||
<%= t('repositories.show.archived_inventory', repository_name: @repository.name) %>
|
||||
<% else %>
|
||||
<%= t('repositories.show.archived_inventory_items', repository_name: @repository.name) %>
|
||||
|
|
Loading…
Reference in a new issue