@@ -1,41 +1,41 | |||
|
1 | 1 | <% if @project.repositories.any? %> |
|
2 | 2 | <table class="list"> |
|
3 | 3 | <thead> |
|
4 |
|
|
|
4 | <tr> | |
|
5 | 5 | <th><%= l(:label_scm) %></th> |
|
6 | 6 | <th><%= l(:field_identifier) %></th> |
|
7 | 7 | <th><%= l(:field_repository_is_default) %></th> |
|
8 | 8 | <th><%= l(:label_repository) %></th> |
|
9 | 9 | <th></th> |
|
10 | 10 | </tr> |
|
11 |
|
|
|
11 | </thead> | |
|
12 | 12 | <tbody> |
|
13 | 13 | <% @project.repositories.sort.each do |repository| %> |
|
14 |
|
|
|
15 |
|
|
|
14 | <tr class="<%= cycle 'odd', 'even' %>"> | |
|
15 | <td><%=h repository.scm_name %></td> | |
|
16 | 16 | <td><%=h repository.identifier %></td> |
|
17 | 17 | <td align="center"><%= checked_image repository.is_default? %></td> |
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
18 | <td><%=h repository.url %></td> | |
|
19 | <td class="buttons"> | |
|
20 | <% if User.current.allowed_to?(:manage_repository, @project) %> | |
|
21 | <%= link_to(l(:label_user_plural), committers_repository_path(repository), | |
|
22 | 22 | :class => 'icon icon-user') %> |
|
23 | 23 | <%= link_to(l(:button_edit), edit_repository_path(repository), |
|
24 | 24 | :class => 'icon icon-edit') %> |
|
25 | 25 | <%= link_to(l(:button_delete), repository_path(repository), |
|
26 | 26 | :confirm => l(:text_are_you_sure), |
|
27 | 27 | :method => :delete, |
|
28 | 28 | :class => 'icon icon-del') %> |
|
29 |
|
|
|
30 | </td> | |
|
31 |
|
|
|
29 | <% end %> | |
|
30 | </td> | |
|
31 | </tr> | |
|
32 | 32 | <% end %> |
|
33 | 33 | </tbody> |
|
34 | 34 | </table> |
|
35 | 35 | <% else %> |
|
36 | 36 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
37 | 37 | <% end %> |
|
38 | 38 | |
|
39 | 39 | <% if User.current.allowed_to?(:manage_repository, @project) %> |
|
40 | 40 | <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p> |
|
41 | 41 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now