##// END OF EJS Templates
Add links to repositories on repository list....
Jean-Philippe Lang -
r9940:2175e4a90112
parent child
Show More
@@ -1,38 +1,41
1 1 <% if @project.repositories.any? %>
2 2 <table class="list">
3 3 <thead>
4 4 <tr>
5 <th><%= l(:label_scm) %></th>
6 5 <th><%= l(:field_identifier) %></th>
7 6 <th><%= l(:field_repository_is_default) %></th>
7 <th><%= l(:label_scm) %></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 14 <tr class="<%= cycle 'odd', 'even' %>">
15 <td><%=h repository.scm_name %></td>
16 <td><%=h repository.identifier %></td>
15 <td>
16 <%= link_to repository.identifier,
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier_param.present? %>
18 </td>
17 19 <td align="center"><%= checked_image repository.is_default? %></td>
20 <td><%=h repository.scm_name %></td>
18 21 <td><%=h repository.url %></td>
19 22 <td class="buttons">
20 23 <% if User.current.allowed_to?(:manage_repository, @project) %>
21 24 <%= link_to(l(:label_user_plural), committers_repository_path(repository),
22 25 :class => 'icon icon-user') %>
23 26 <%= link_to(l(:button_edit), edit_repository_path(repository),
24 27 :class => 'icon icon-edit') %>
25 28 <%= delete_link repository_path(repository) %>
26 29 <% end %>
27 30 </td>
28 31 </tr>
29 32 <% end %>
30 33 </tbody>
31 34 </table>
32 35 <% else %>
33 36 <p class="nodata"><%= l(:label_no_data) %></p>
34 37 <% end %>
35 38
36 39 <% if User.current.allowed_to?(:manage_repository, @project) %>
37 40 <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
38 41 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now