Add titles to navigation items [SCI-5460]

This commit is contained in:
aignatov-bio 2021-02-23 15:00:11 +01:00
parent d1b16ebf01
commit 24134174fc
4 changed files with 7 additions and 4 deletions

View file

@ -11,6 +11,7 @@
<% my_modules.each do |my_module| %>
<li class="sidebar-leaf">
<%= link_to my_module.name,
title: my_module.name,
protocols_my_module_url(my_module),
class: 'sidebar-link',
data: { module_id: my_module.id } %>

View file

@ -11,9 +11,9 @@
<% project.sorted_experiments(@current_sort, view_mode == 'archived').each do |experiment| %>
<li class="sidebar-leaf">
<% if view_mode == 'archived' %>
<%= link_to experiment.name, module_archive_experiment_path(experiment), class: 'sidebar-link' %>
<%= link_to experiment.name, module_archive_experiment_path(experiment), title: experiment.name, class: 'sidebar-link' %>
<% else %>
<%= link_to experiment.name, canvas_experiment_path(experiment), class: 'sidebar-link' %>
<%= link_to experiment.name, canvas_experiment_path(experiment), title: experiment.name, class: 'sidebar-link' %>
<% end %>
</li>
<% end %>

View file

@ -6,6 +6,7 @@
<li class="sidebar-leaf">
<%= link_to my_module.name,
protocols_my_module_url(my_module),
title: my_module.name,
class: 'sidebar-link',
data: { module_id: my_module.id } %>
<% if action_name == 'canvas' %>

View file

@ -2,9 +2,9 @@
<% if record[:project] %>
<li class="sidebar-leaf">
<% if record[:project].archived? %>
<%= link_to record[:project].name, project_url(record[:project], view_mode: :archived), class: 'sidebar-link' %>
<%= link_to record[:project].name, project_url(record[:project], view_mode: :archived), title: record[:project].name, class: 'sidebar-link' %>
<% else %>
<%= link_to record[:project].name, project_url(record[:project]), class: 'sidebar-link' %>
<%= link_to record[:project].name, project_url(record[:project]), title: record[:project].name, class: 'sidebar-link' %>
<% end %>
</li>
<% else %>
@ -14,6 +14,7 @@
<% end %>
<%= link_to project_folder_path(record[:folder]),
class: "sidebar-link project-folder-link folder #{'selected' if current_folder == record[:folder]}",
title: record[:folder].name,
data: {
sidebar_url: sidebar_team_path(current_team, project_folder_id: record[:folder].id),
projects_cards_url: project_folder_cards_url(record[:folder])