2018-03-21 16:22:55 +08:00
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<div id="slide-panel" class="visible">
|
2019-07-19 22:25:14 +08:00
|
|
|
<div id="repo-tree" class="tree">
|
2018-03-21 16:22:55 +08:00
|
|
|
<ul>
|
2019-08-09 18:54:22 +08:00
|
|
|
<% if can_create_repositories?(current_team) %>
|
|
|
|
<li>
|
|
|
|
<span class="tree-link link-wrap no-indent">
|
2019-08-19 20:01:48 +08:00
|
|
|
<a class="sidebar-button create-new-repository" data-remote="true"
|
|
|
|
href="<%= create_modal_team_repositories_path(current_team) %>">
|
2019-08-09 18:54:22 +08:00
|
|
|
<span class="fas fa-plus"></span>
|
|
|
|
<%= t('libraries.index.no_libraries.create_new_button') %>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2018-03-21 16:22:55 +08:00
|
|
|
<% repositories.each do |repository| %>
|
2019-07-19 22:25:14 +08:00
|
|
|
<li class="<%= 'active parent_li' if current_page?(repository_path(repository)) %>" >
|
|
|
|
<span class="tree-link line-wrap no-indent">
|
2020-01-06 23:07:23 +08:00
|
|
|
<%= link_to repository.name,
|
|
|
|
repository_path(repository),
|
|
|
|
class: current_page?(repository_path(repository)) ? 'disabled' : '',
|
|
|
|
title: repository.name,
|
|
|
|
data: { 'no-turbolink' => 'true', type: 'repository', id: repository.id } %>
|
2019-08-26 14:56:46 +08:00
|
|
|
<%= inventory_shared_status_icon(repository, current_team) %>
|
2018-04-12 23:12:45 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
2018-03-21 16:22:55 +08:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2018-03-28 20:12:11 +08:00
|
|
|
|
|
|
|
<script>
|
2018-07-19 23:56:42 +08:00
|
|
|
$('#wrapper').show();
|
2018-03-28 20:12:11 +08:00
|
|
|
</script>
|