Mercurial > hg > soundsoftware-site
annotate .svn/pristine/de/def9f3f31fca65d3ac36a257a52bd7aa3a6ab0c0.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 <% if @project.repositories.any? %> |
Chris@1296 | 2 <table class="list"> |
Chris@1296 | 3 <thead> |
Chris@1296 | 4 <tr> |
Chris@1296 | 5 <th><%= l(:field_identifier) %></th> |
Chris@1296 | 6 <th><%= l(:field_repository_is_default) %></th> |
Chris@1296 | 7 <th><%= l(:label_scm) %></th> |
Chris@1296 | 8 <th><%= l(:label_repository) %></th> |
Chris@1296 | 9 <th></th> |
Chris@1296 | 10 </tr> |
Chris@1296 | 11 </thead> |
Chris@1296 | 12 <tbody> |
Chris@1296 | 13 <% @project.repositories.sort.each do |repository| %> |
Chris@1296 | 14 <tr class="<%= cycle 'odd', 'even' %>"> |
Chris@1296 | 15 <td> |
Chris@1296 | 16 <%= link_to repository.identifier, |
Chris@1296 | 17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %> |
Chris@1296 | 18 </td> |
Chris@1296 | 19 <td align="center"><%= checked_image repository.is_default? %></td> |
Chris@1296 | 20 <td><%=h repository.scm_name %></td> |
Chris@1296 | 21 <td><%=h repository.url %></td> |
Chris@1296 | 22 <td class="buttons"> |
Chris@1296 | 23 <% if User.current.allowed_to?(:manage_repository, @project) %> |
Chris@1296 | 24 <%= link_to(l(:label_user_plural), committers_repository_path(repository), |
Chris@1296 | 25 :class => 'icon icon-user') %> |
Chris@1296 | 26 <%= link_to(l(:button_edit), edit_repository_path(repository), |
Chris@1296 | 27 :class => 'icon icon-edit') %> |
Chris@1296 | 28 <%= delete_link repository_path(repository) %> |
Chris@1296 | 29 <% end %> |
Chris@1296 | 30 </td> |
Chris@1296 | 31 </tr> |
Chris@1296 | 32 <% end %> |
Chris@1296 | 33 </tbody> |
Chris@1296 | 34 </table> |
Chris@1296 | 35 <% else %> |
Chris@1296 | 36 <p class="nodata"><%= l(:label_no_data) %></p> |
Chris@1296 | 37 <% end %> |
Chris@1296 | 38 |
Chris@1296 | 39 <% if User.current.allowed_to?(:manage_repository, @project) %> |
Chris@1296 | 40 <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p> |
Chris@1296 | 41 <% end %> |