2012-01-15 22:19:19 +04:00
|
|
|
<% if @project.repositories.any? %>
|
2012-01-15 18:23:06 +04:00
|
|
|
<table class="list">
|
|
|
|
<thead>
|
2012-01-26 16:07:48 +04:00
|
|
|
<tr>
|
2012-01-15 18:23:06 +04:00
|
|
|
<th><%= l(:label_scm) %></th>
|
2012-01-15 22:19:19 +04:00
|
|
|
<th><%= l(:field_identifier) %></th>
|
|
|
|
<th><%= l(:field_repository_is_default) %></th>
|
2012-01-15 18:23:06 +04:00
|
|
|
<th><%= l(:label_repository) %></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
2012-01-26 16:07:48 +04:00
|
|
|
</thead>
|
2012-01-15 18:23:06 +04:00
|
|
|
<tbody>
|
2012-01-17 22:43:34 +04:00
|
|
|
<% @project.repositories.sort.each do |repository| %>
|
2012-01-26 16:07:48 +04:00
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<td><%=h repository.scm_name %></td>
|
2012-01-15 22:19:19 +04:00
|
|
|
<td><%=h repository.identifier %></td>
|
|
|
|
<td align="center"><%= checked_image repository.is_default? %></td>
|
2012-01-26 16:07:48 +04:00
|
|
|
<td><%=h repository.url %></td>
|
|
|
|
<td class="buttons">
|
|
|
|
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
|
|
|
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
2012-01-15 18:23:06 +04:00
|
|
|
:class => 'icon icon-user') %>
|
|
|
|
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
|
|
|
:class => 'icon icon-edit') %>
|
2012-07-07 18:36:49 +04:00
|
|
|
<%= delete_link repository_path(repository) %>
|
2012-01-26 16:07:48 +04:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-01-15 22:19:19 +04:00
|
|
|
<% end %>
|
2012-01-15 18:23:06 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|
|
|
|
|
2012-01-15 22:19:19 +04:00
|
|
|
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
2012-01-15 18:23:06 +04:00
|
|
|
<p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
|
|
|
|
<% end %>
|