3 |
3 |
<% end %>
|
4 |
4 |
|
5 |
5 |
<% if @project.repositories.any? %>
|
6 |
|
<table class="list">
|
7 |
|
<thead>
|
8 |
|
<tr>
|
9 |
|
<th><%= l(:field_identifier) %></th>
|
10 |
|
<th><%= l(:field_repository_is_default) %></th>
|
11 |
|
<th><%= l(:label_scm) %></th>
|
12 |
|
<th><%= l(:label_repository) %></th>
|
13 |
|
<th></th>
|
14 |
|
</tr>
|
15 |
|
</thead>
|
16 |
|
<tbody>
|
17 |
|
<% @project.repositories.sort.each do |repository| %>
|
18 |
|
<tr>
|
19 |
|
<td class="name">
|
20 |
|
<%= link_to repository.identifier,
|
21 |
|
{:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
|
22 |
|
</td>
|
23 |
|
<td><%= checked_image repository.is_default? %></td>
|
24 |
|
<td><%= repository.scm_name %></td>
|
25 |
|
<td><%= repository.url %></td>
|
26 |
|
<td class="buttons">
|
27 |
|
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
28 |
|
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
29 |
|
:class => 'icon icon-user') %>
|
30 |
|
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
31 |
|
:class => 'icon icon-edit') %>
|
32 |
|
<%= delete_link repository_path(repository) %>
|
33 |
|
<% end %>
|
34 |
|
</td>
|
35 |
|
</tr>
|
36 |
|
<% end %>
|
37 |
|
</tbody>
|
38 |
|
</table>
|
|
6 |
<div class="autoscroll">
|
|
7 |
<table class="list">
|
|
8 |
<thead>
|
|
9 |
<tr>
|
|
10 |
<th><%= l(:field_identifier) %></th>
|
|
11 |
<th><%= l(:field_repository_is_default) %></th>
|
|
12 |
<th><%= l(:label_scm) %></th>
|
|
13 |
<th><%= l(:label_repository) %></th>
|
|
14 |
<th></th>
|
|
15 |
</tr>
|
|
16 |
</thead>
|
|
17 |
<tbody>
|
|
18 |
<% @project.repositories.sort.each do |repository| %>
|
|
19 |
<tr>
|
|
20 |
<td class="name">
|
|
21 |
<%= link_to repository.identifier,
|
|
22 |
{:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
|
|
23 |
</td>
|
|
24 |
<td><%= checked_image repository.is_default? %></td>
|
|
25 |
<td><%= repository.scm_name %></td>
|
|
26 |
<td><%= repository.url %></td>
|
|
27 |
<td class="buttons">
|
|
28 |
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
|
29 |
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
|
30 |
:class => 'icon icon-user') %>
|
|
31 |
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
|
32 |
:class => 'icon icon-edit') %>
|
|
33 |
<%= delete_link repository_path(repository) %>
|
|
34 |
<% end %>
|
|
35 |
</td>
|
|
36 |
</tr>
|
|
37 |
<% end %>
|
|
38 |
</tbody>
|
|
39 |
</table>
|
|
40 |
</div>
|
39 |
41 |
<% else %>
|
40 |
42 |
<p class="nodata"><%= l(:label_no_data) %></p>
|
41 |
43 |
<% end %>
|