2020-12-08 23:07:26 +08:00
|
|
|
<ul class="sidebar-branch">
|
2021-01-12 17:51:17 +08:00
|
|
|
<% if projects_view_mode_archived? %>
|
2021-01-07 20:16:05 +08:00
|
|
|
<li class="sidebar-leaf">
|
|
|
|
<%= link_to projects_path, class: "sidebar-link back-button" do %>
|
|
|
|
<%= t("projects.index.back_to_active_projects") %>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2021-01-12 17:51:17 +08:00
|
|
|
<%= render partial: 'shared/sidebar/projects_tree_branch.html.erb', locals: { records: sidebar_folders_tree(team, current_user, sort) } %>
|
|
|
|
<% if !projects_view_mode_archived? %>
|
2021-01-07 20:16:05 +08:00
|
|
|
<li class="sidebar-leaf">
|
2021-01-12 17:51:17 +08:00
|
|
|
<%= link_to projects_path(view_mode: :archived), class: "sidebar-link" do %>
|
2021-01-07 20:16:05 +08:00
|
|
|
<span class="fas fa-archive"></span>
|
2021-01-19 18:28:59 +08:00
|
|
|
<%= t('projects.index.navigation_archived_projects') %>
|
2021-01-07 20:16:05 +08:00
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2020-12-08 23:07:26 +08:00
|
|
|
</ul>
|