(A) label (instead of icons) in front of titles of archived elements

This commit is contained in:
Giga Chubinidze 2023-06-02 04:03:41 +04:00
parent 790653351a
commit a27c2b2cd3
9 changed files with 11 additions and 8 deletions

View file

@ -3,7 +3,7 @@
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
<h1 class="experimnet-name" data-toggle="tooltip" data-placement="bottom" title="<%= @experiment.name %>">
<% if @experiment.archived? %>
<i class="fas fa-archive" data-view-mode="archived"></i>
<span><%= t('labels.archived')%></span>&nbsp;
<% end %>
<% if @inline_editable_title_config.present? %>
<%= render partial: "shared/inline_editing",

View file

@ -15,7 +15,7 @@
</h1>
<% end %>
<h1 data-view-mode="archived">
<i class="fas fa-archive"></i>&nbsp;
<span><%= t('labels.archived')%></span>&nbsp;
<span class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
</h1>
</div>

View file

@ -3,7 +3,7 @@
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
<h1 class="project-name">
<% if @project.archived? %>
<i class="fas fa-archive" data-view-mode="archived"></i>
<span><%= t('labels.archived')%></span>&nbsp;
<% end %>
<% if @inline_editable_title_config.present? %>
<%= render partial: "shared/inline_editing",

View file

@ -16,7 +16,7 @@
<div class="title-row">
<% if templates_view_mode_archived?(type: @type) %>
<h1>
<i class="fas fa-archive"></i>
<span><%= t('labels.archived')%></span>&nbsp;
<%= t('protocols.index.head_title_archived') %>
</h1>
<% else %>

View file

@ -15,7 +15,7 @@
} %>
<% else %>
<% if @protocol.archived %>
<i class="fas fa-archive"></i>&nbsp;
<span><%= t('labels.archived')%></span>&nbsp;
<% end %>
<div class="name-readonly-placeholder">
<% if @protocol.in_repository_draft? %>

View file

@ -5,7 +5,7 @@
class: "sidebar-link repository-link #{ 'selected' if current_page?(repository_path(repository)) }",
data: {type: 'repository', id: repository.id } do %>
<% if repository.archived? %>
<i class="fas fa-archive"></i>&nbsp;
<span><%= t('labels.archived')%></span>&nbsp;
<% end %>
<%= repository.name %>
<%= inventory_shared_status_icon(repository, current_team) %>

View file

@ -3,7 +3,7 @@
<div class="content-header">
<div class="title-row">
<h1 data-view-mode="active"><%= t('libraries.index.head_title') %></h1>
<h1 data-view-mode="archived"><i class="fas fa-archive"></i>&nbsp;<%= t('libraries.index.head_title_archived') %></h1>
<h1 data-view-mode="archived"><span><%= t('labels.archived')%></span>&nbsp;<%= t('libraries.index.head_title_archived') %></h1>
</div>
</div>
<div class="content-body">

View file

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

View file

@ -430,6 +430,9 @@ en:
delete_error: "Error occurred while deleting comment."
step_url: "Go to step"
labels:
archived: "(A)"
projects:
index:
header: