mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
ef57489cd9
* Update repositories sidebar [SCI-5329]
15 lines
601 B
Text
15 lines
601 B
Text
<ul class="sidebar-branch">
|
|
<% repositories.each do |repository| %>
|
|
<li class="sidebar-leaf" title="<%= repository.name %>">
|
|
<%= link_to repository_path(repository),
|
|
class: "sidebar-link repository-link #{ 'selected' if current_page?(repository_path(repository)) }",
|
|
data: {type: 'repository', id: repository.id } do %>
|
|
<% if repository.archived? %>
|
|
<i class="fas fa-archive"></i>
|
|
<% end %>
|
|
<%= repository.name %>
|
|
<%= inventory_shared_status_icon(repository, current_team) %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|