2020-06-04 20:39:56 +08:00
|
|
|
<div id="repo-tree" class="tree">
|
|
|
|
<ul class="sidebar-root">
|
|
|
|
<% if can_create_repositories?(current_team) && !archived %>
|
|
|
|
<li class="branch">
|
|
|
|
<span class="tree-link no-indent">
|
|
|
|
<a class="btn btn-secondary create-new-repository" data-remote="true"
|
|
|
|
href="<%= create_modal_team_repositories_path(current_team) %>">
|
|
|
|
<i class="fas fa-plus"></i>
|
|
|
|
<%= t('libraries.index.no_libraries.create_new_button') %>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% repositories.each do |repository| %>
|
|
|
|
<li class="branch <%= 'active parent_li' if current_page?(repository_path(repository)) %>" >
|
|
|
|
<span class="tree-link no-indent" title="<%= repository.name %>">
|
|
|
|
<%= link_to repository_path(repository),
|
|
|
|
class: current_page?(repository_path(repository)) ? 'disabled line-wrap' : 'line-wrap',
|
|
|
|
data: { 'no-turbolink' => 'true', type: 'repository', id: repository.id } do %>
|
2020-07-09 17:34:09 +08:00
|
|
|
<% if repository.archived? %>
|
|
|
|
<i class="fas fa-archive"></i>
|
|
|
|
<% end %>
|
2020-06-04 20:39:56 +08:00
|
|
|
<%= repository.name %>
|
|
|
|
<%= inventory_shared_status_icon(repository, current_team) %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|