% provide(:head_title, t("libraries.index.head_title")) %>
<% if current_team %>
<%= render partial: "sidebar", locals: { repositories: @repositories } %>
<%
# show only if no repositories present. If the team will have them we will
# handle this in left side navigation bar
%>
<%=t 'libraries.index.no_libraries.text' %>
<% if can_create_repositories?(current_team) %>
<%=t 'libraries.index.no_libraries.title' %>
<%= link_to t('libraries.index.no_libraries.create_new_button'),
create_modal_team_repositories_path(current_team),
class: "btn btn-primary btn-lg",
id: "create-new-repository",
remote: true %>
<% else %>
<%=t 'libraries.index.no_libraries.no_permission_title' %>
<% end %>
<% else %>
<%=t 'repositories.index.no_teams.title' %>
<%=t 'repositories.index.no_teams.text' %>
<% end %>
<%= javascript_include_tag "repositories/index", "data-turbolinks-track" => true %>