%= content_for :sidebar do %>
<% if can_create_repositories?(current_team) %>
-
<% end %>
<% repositories.each do |repository| %>
-
<% if current_page?(repository_path(repository)) %>
<%= repository.name %>
<% else %>
<%= link_to repository.name,
repository_path(repository),
data: { 'no-turbolink' => 'true' } %>
<% end %>
<% if repository.shared_with?(current_team) %>
<% if repository.shared_with_write?(current_team) || can_manage_repository?(@repository) %>
<%= draw_custom_icon('shared-edit') %>
<% else %>
<%= draw_custom_icon('shared-read') %>
<% end %>
<% else %>
" >
<%= draw_custom_icon('i-shared') %>
<% end %>
<% end %>
<% end %>