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.

committers.html.erb 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <h2><%= l(:label_repository) %></h2>
  2. <%= simple_format(l(:text_repository_usernames_mapping)) %>
  3. <% if @committers.empty? %>
  4. <p class="nodata"><%= l(:label_no_data) %></p>
  5. <% else %>
  6. <%= form_tag({}) do %>
  7. <table class="list">
  8. <thead>
  9. <tr>
  10. <th><%= l(:field_login) %></th>
  11. <th><%= l(:label_user) %></th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <% i = 0 -%>
  16. <% @committers.each do |committer, user_id| -%>
  17. <tr class="<%= cycle 'odd', 'even' %>">
  18. <td><%=h committer %></td>
  19. <td>
  20. <%= hidden_field_tag "committers[#{i}][]", committer %>
  21. <%= select_tag "committers[#{i}][]",
  22. content_tag(
  23. 'option',
  24. "-- #{l :actionview_instancetag_blank_option} --",
  25. :value => ''
  26. ) +
  27. options_from_collection_for_select(
  28. @users, 'id', 'name', user_id.to_i
  29. ) %>
  30. </td>
  31. </tr>
  32. <% i += 1 -%>
  33. <% end -%>
  34. </tbody>
  35. </table>
  36. <p><%= submit_tag(l(:button_update)) %></p>
  37. <% end %>
  38. <% end %>