mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
f15d984d47
* Fix navigation between archived and active projects [SCI-5419]
18 lines
717 B
Text
18 lines
717 B
Text
<ul class="sidebar-branch">
|
|
<% if projects_view_mode_archived? %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to projects_path, class: "sidebar-link back-button" do %>
|
|
<%= t("projects.index.back_to_active_projects") %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<%= render partial: 'shared/sidebar/projects_tree_branch.html.erb', locals: { records: sidebar_folders_tree(team, current_user, sort) } %>
|
|
<% if !projects_view_mode_archived? %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to projects_path(view_mode: :archived), class: "sidebar-link" do %>
|
|
<span class="fas fa-archive"></span>
|
|
<%= t('projects.index.navigation_archived_projects') %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|