mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-26 01:46:20 +08:00
1f6fff812a
* Add projects navigation buttons and fix sidebar reload on sorting [SCI-5357][SCI-5331]
19 lines
712 B
Plaintext
19 lines
712 B
Plaintext
<ul class="sidebar-branch">
|
|
<% if 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, view_mode) } %>
|
|
<% if view_mode != 'archived' %>
|
|
<li class="sidebar-leaf">
|
|
<%= link_to projects_path(mode: :archived), class: "sidebar-link" do %>
|
|
<span class="fas fa-archive"></span>
|
|
<%= t("projects.index.navigation_archived_projects") %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|