38 lines
2.1 KiB
Plaintext
38 lines
2.1 KiB
Plaintext
<table class="pro_table">
|
|
<tbody>
|
|
<tr class="pro_table_tit">历史版本</tr>
|
|
<tr class="pro_table_tit">
|
|
<td class=" w150"><%= l(:field_identifier) %></td>
|
|
<td class="w150"> <%= l(:field_repository_is_default) %></td>
|
|
<td class="w150"><%= l(:label_scm) %> </td>
|
|
<td class="w150" ><%= l(:label_repository_path) %> </td>
|
|
<td class="w150"> </td>
|
|
<td class="w150"> </td>
|
|
</tr>
|
|
<% rep_forge(project).sort.each do |repository| %>
|
|
<tr class="<%= cycle 'pro_table_on', '' %>">
|
|
<td><a href="javascript:viod(0)" title="<%= repository.identifier %>">
|
|
<%= link_to truncate(repository.identifier), ({:controller => 'repositories', :action => 'show', :id => @project, :repository_id => repository.identifier_param} if repository.identifier.present?) %></a></td>
|
|
<td> <%= checked_image repository.is_default? %></td>
|
|
<td><%=h repository.scm_name %></td>
|
|
<%if repository.scm_name=="Git"%>
|
|
<td style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" title="http://<%= repository.login.to_s %>_<%= repository.identifier.to_s%>@<%= ip %>
|
|
<%=h repository.url.slice(project_path_cut, repository.url.length) %>"> <%=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)%></td><!--Modified by tanxianbo-->
|
|
<%else %>
|
|
<td style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" ><%=h truncate(repository.url,:length=>10) %></td>
|
|
<% end %>
|
|
<td><a href="javascript:viod(0)" class="c_blue" >
|
|
<% 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 %>
|
|
</a></td>
|
|
<td>
|
|
<% if repository.login.to_s==User.current.login.to_s %>
|
|
<%= delete_new_link repository_path(repository) %>
|
|
<% end %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table> |