comparison .svn/pristine/de/def9f3f31fca65d3ac36a257a52bd7aa3a6ab0c0.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 <% if @project.repositories.any? %>
2 <table class="list">
3 <thead>
4 <tr>
5 <th><%= l(:field_identifier) %></th>
6 <th><%= l(:field_repository_is_default) %></th>
7 <th><%= l(:label_scm) %></th>
8 <th><%= l(:label_repository) %></th>
9 <th></th>
10 </tr>
11 </thead>
12 <tbody>
13 <% @project.repositories.sort.each do |repository| %>
14 <tr class="<%= cycle 'odd', 'even' %>">
15 <td>
16 <%= link_to repository.identifier,
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
18 </td>
19 <td align="center"><%= checked_image repository.is_default? %></td>
20 <td><%=h repository.scm_name %></td>
21 <td><%=h repository.url %></td>
22 <td class="buttons">
23 <% if User.current.allowed_to?(:manage_repository, @project) %>
24 <%= link_to(l(:label_user_plural), committers_repository_path(repository),
25 :class => 'icon icon-user') %>
26 <%= link_to(l(:button_edit), edit_repository_path(repository),
27 :class => 'icon icon-edit') %>
28 <%= delete_link repository_path(repository) %>
29 <% end %>
30 </td>
31 </tr>
32 <% end %>
33 </tbody>
34 </table>
35 <% else %>
36 <p class="nodata"><%= l(:label_no_data) %></p>
37 <% end %>
38
39 <% if User.current.allowed_to?(:manage_repository, @project) %>
40 <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
41 <% end %>