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