annotate app/views/projects/settings/_repositories.html.erb @ 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 433d4f72a19b
children fc0fecf09eb9 261b3d9a4903
rev   line source
Chris@1115 1 <% if @project.repositories.any? %>
Chris@1115 2 <table class="list">
Chris@1115 3 <thead>
Chris@1115 4 <tr>
Chris@1115 5 <th><%= l(:field_identifier) %></th>
Chris@1115 6 <th><%= l(:field_repository_is_default) %></th>
Chris@1115 7 <th><%= l(:label_scm) %></th>
Chris@1115 8 <th><%= l(:label_repository) %></th>
Chris@1115 9 <th></th>
Chris@1115 10 </tr>
Chris@1115 11 </thead>
Chris@1115 12 <tbody>
Chris@1115 13 <% @project.repositories.sort.each do |repository| %>
Chris@1115 14 <tr class="<%= cycle 'odd', 'even' %>">
Chris@1115 15 <td>
Chris@1115 16 <%= link_to repository.identifier,
Chris@1115 17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
Chris@1115 18 </td>
Chris@1115 19 <td align="center"><%= checked_image repository.is_default? %></td>
Chris@1115 20 <td><%=h repository.scm_name %></td>
Chris@1115 21 <td><%=h repository.url %></td>
Chris@1115 22 <td class="buttons">
Chris@1115 23 <% if User.current.allowed_to?(:manage_repository, @project) %>
Chris@1115 24 <%= link_to(l(:label_user_plural), committers_repository_path(repository),
Chris@1115 25 :class => 'icon icon-user') %>
Chris@1115 26 <%= link_to(l(:button_edit), edit_repository_path(repository),
Chris@1115 27 :class => 'icon icon-edit') %>
Chris@1115 28 <%= delete_link repository_path(repository) %>
Chris@1115 29 <% end %>
Chris@1115 30 </td>
Chris@1115 31 </tr>
Chris@1115 32 <% end %>
Chris@1115 33 </tbody>
Chris@1115 34 </table>
Chris@1115 35 <% else %>
Chris@1115 36 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@1115 37 <% end %>
Chris@1115 38
Chris@1115 39 <% if User.current.allowed_to?(:manage_repository, @project) %>
Chris@1115 40 <p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
Chris@1115 41 <% end %>