mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 22:42:22 +08:00
(A) label (instead of icons) in front of titles of archived elements
This commit is contained in:
parent
790653351a
commit
a27c2b2cd3
9 changed files with 11 additions and 8 deletions
|
|
@ -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>
|
||||
<% end %>
|
||||
<% if @inline_editable_title_config.present? %>
|
||||
<%= render partial: "shared/inline_editing",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</h1>
|
||||
<% end %>
|
||||
<h1 data-view-mode="archived">
|
||||
<i class="fas fa-archive"></i>
|
||||
<span><%= t('labels.archived')%></span>
|
||||
<span class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
|
||||
</h1>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<% end %>
|
||||
<% if @inline_editable_title_config.present? %>
|
||||
<%= render partial: "shared/inline_editing",
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<%= t('protocols.index.head_title_archived') %>
|
||||
</h1>
|
||||
<% else %>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
} %>
|
||||
<% else %>
|
||||
<% if @protocol.archived %>
|
||||
<i class="fas fa-archive"></i>
|
||||
<span><%= t('labels.archived')%></span>
|
||||
<% end %>
|
||||
<div class="name-readonly-placeholder">
|
||||
<% if @protocol.in_repository_draft? %>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<span><%= t('labels.archived')%></span>
|
||||
<% end %>
|
||||
<%= repository.name %>
|
||||
<%= inventory_shared_status_icon(repository, current_team) %>
|
||||
|
|
|
|||
|
|
@ -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> <%= t('libraries.index.head_title_archived') %></h1>
|
||||
<h1 data-view-mode="archived"><span><%= t('labels.archived')%></span> <%= t('libraries.index.head_title_archived') %></h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-body">
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
<% end %>
|
||||
<div class="repository-archived-title-name" data-view-mode="archived">
|
||||
<% if @repository.archived? %>
|
||||
<i class="fas fa-archive"></i>
|
||||
<span><%= t('labels.archived')%></span>
|
||||
<%= t('repositories.show.archived_inventory', repository_name: @repository.name) %>
|
||||
<% else %>
|
||||
<%= t('repositories.show.archived_inventory_items', repository_name: @repository.name) %>
|
||||
|
|
|
|||
|
|
@ -430,6 +430,9 @@ en:
|
|||
delete_error: "Error occurred while deleting comment."
|
||||
step_url: "Go to step"
|
||||
|
||||
labels:
|
||||
archived: "(A)"
|
||||
|
||||
projects:
|
||||
index:
|
||||
header:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue