2020-11-30 19:16:54 +08:00
|
|
|
<% target_folder ||= @current_folder %>
|
2020-11-24 22:42:06 +08:00
|
|
|
<div class="projects-breadcrumbs">
|
|
|
|
<%= link_to(t('projects.index.breadcrumbs_root'),
|
|
|
|
projects_path,
|
|
|
|
class: 'project-folder-link',
|
|
|
|
data: { projects_cards_url: cards_projects_url }) %>
|
|
|
|
<span>/</span>
|
2020-11-30 19:16:54 +08:00
|
|
|
<% target_folder&.parent_folders&.each do |project_folder| %>
|
2020-11-24 22:42:06 +08:00
|
|
|
<%= link_to(project_folder.name,
|
|
|
|
project_folder_path(project_folder),
|
|
|
|
class: 'project-folder-link',
|
|
|
|
data: { projects_cards_url: project_folder_cards_url(project_folder) }) %>
|
|
|
|
<span>/</span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|