mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
<% target_folder ||= nil %>
|
|
<% experiment ||= nil %>
|
|
<% project ||= nil %>
|
|
|
|
<div class="projects-breadcrumbs">
|
|
<%= link_to(t('projects.index.breadcrumbs_root'),
|
|
projects_path(view_mode: projects_view_mode(project: project)),
|
|
class: 'project-folder-link',
|
|
data: { projects_cards_url: cards_projects_url,
|
|
sidebar_url: sidebar_team_path(current_team) }) %>
|
|
<span>/</span>
|
|
<% tree_ordered_parent_folders(target_folder)&.each do |project_folder| %>
|
|
<%= link_to(project_folder.name,
|
|
project_folder_path(project_folder),
|
|
class: 'project-folder-link',
|
|
data: { projects_cards_url: project_folder_cards_url(project_folder),
|
|
sidebar_url: sidebar_team_path(current_team, project_folder_id: project_folder.id),
|
|
}
|
|
) %>
|
|
<span>/</span>
|
|
<% end %>
|
|
|
|
<% if project %>
|
|
<%= link_to(project.name, project_path(project), class: 'project-folder-link') %>
|
|
<span>/</span>
|
|
<% end %>
|
|
|
|
<% if experiment %>
|
|
<%= link_to(experiment.name, canvas_experiment_path(experiment), class: 'project-folder-link') %>
|
|
<span>/</span>
|
|
<% end %>
|
|
</div>
|