<%= str = error_messages_for 'repository' %> <% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %> <% ip = RepositoriesHelper::REPO_IP_ADDRESS %> <% if @project.repositories.any? %> <% @project.repositories.sort.each do |repository| %> <%if repository.scm_name=="Git"%> <%else %> <% end %> <% end %> <% else %>

<%= l(:label_no_data) %>

<% end %>
<%= l(:field_identifier) %> <%= l(:field_repository_is_default) %> <%= l(:label_scm) %> <%= l(:label_repository_path) %>
<%= link_to truncate(repository.identifier), ({:controller => 'repositories', :action => 'show', :id => @project, :repository_id => repository.identifier_param} if repository.identifier.present?) %> <%= checked_image repository.is_default? %> <%=h repository.scm_name %> <%=truncate( 'http://' << repository.login.to_s << '_'<< repository.identifier.to_s << '@'<< ip.to_s << h( repository.url.slice(project_path_cut, repository.url.length)),:length=>20)%><%=h truncate(repository.url,:length=>10) %> <% if repository.scm_name=="Git"%> <%if User.current.allowed_to?(:manage_repository, @project) %> <%= link_to(l(:label_user_plural), committers_repository_path(repository)) %> <% end %> <% end %> <% if repository.login.to_s==User.current.login.to_s %> <%= delete_new_link repository_path(repository) %> <% end %>
<% course_tag = @project.project_type %> <% if User.current.allowed_to?(:manage_repository, @project) %> <%= link_to l(:label_repository_new_repos),"#" , :onclick=>"pro_st_show_ku();", :class => 'c_blue fl' %>

<% end %>
<%= labelled_form_for :repository, @repository, :url =>project_repositories_path(@project),:html => {:id => 'repository-form',:method=>"post",:autocomplete=>'off'} do |f| %>
<%=l(:button_save)%> <%=l(:button_cancel)%>
<% end %>