scinote-web/app/views/shared/sidebar/_projects.html.erb
aignatov-bio 1f6fff812a
Add projects navigation buttons and fix sidebar reload on sorting [SCI-5357][SCI-5331] (#3048)
* Add projects navigation buttons and fix sidebar reload on sorting [SCI-5357][SCI-5331]
2021-01-07 13:16:05 +01:00

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>