annotate .svn/pristine/de/def9f3f31fca65d3ac36a257a52bd7aa3a6ab0c0.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

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