%= str = error_messages_for 'repository' %> <% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %> <% ip = RepositoriesHelper::REPO_IP_ADDRESS %> <% if @project.repositories.any? %>
<%= 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 %> | <%if repository.scm_name=="Git"%> <%else %> <% end %><% 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 %> |
<%= l(:label_repository_no_data) %>
<% end %> <%# 新建版本库 %> <% if @project.repositories.count == 0 %> <% 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| %>