You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_repositories.html.erb 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <% if @project.repositories.any? %>
  2. <table class="list">
  3. <thead>
  4. <tr>
  5. <th><%= l(:label_scm) %></th>
  6. <th><%= l(:field_identifier) %></th>
  7. <th><%= l(:field_repository_is_default) %></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><%=h repository.scm_name %></td>
  16. <td><%=h repository.identifier %></td>
  17. <td align="center"><%= checked_image repository.is_default? %></td>
  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. :class => 'icon icon-user') %>
  23. <%= link_to(l(:button_edit), edit_repository_path(repository),
  24. :class => 'icon icon-edit') %>
  25. <%= link_to(l(:button_delete), repository_path(repository),
  26. :confirm => l(:text_are_you_sure),
  27. :method => :delete,
  28. :class => 'icon icon-del') %>
  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. <% if User.current.allowed_to?(:manage_repository, @project) %>
  39. <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
  40. <% end %>