%= 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.team_repositories.where(team: current_team).take.write? %>
<%= draw_custom_icon('shared-edit') %>
<% else %>
<%= draw_custom_icon('shared-read') %>
<% end %>
<% end %>
<% end %>
<% end %>