To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / repositories / committers.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (879 Bytes)
| 1 | 0:513646585e45 | Chris | <h2><%= l(:label_repository) %></h2> |
|---|---|---|---|
| 2 | |||
| 3 | <%= simple_format(l(:text_repository_usernames_mapping)) %>
|
||
| 4 | |||
| 5 | <% if @committers.empty? %>
|
||
| 6 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 7 | <% else %>
|
||
| 8 | |||
| 9 | <% form_tag({}) do %>
|
||
| 10 | <table class="list"> |
||
| 11 | <thead>
|
||
| 12 | 909:cbb26bc654de | Chris | <tr>
|
| 13 | <th><%= l(:field_login) %></th> |
||
| 14 | <th><%= l(:label_user) %></th> |
||
| 15 | </tr>
|
||
| 16 | 0:513646585e45 | Chris | </thead>
|
| 17 | <tbody>
|
||
| 18 | <% i = 0 -%>
|
||
| 19 | <% @committers.each do |committer, user_id| -%>
|
||
| 20 | 909:cbb26bc654de | Chris | <tr class="<%= cycle 'odd', 'even' %>"> |
| 21 | <td><%=h committer %></td> |
||
| 22 | <td>
|
||
| 23 | <%= hidden_field_tag "committers[#{i}][]", committer %>
|
||
| 24 | <%= select_tag "committers[#{i}][]", content_tag('option', "-- #{l :actionview_instancetag_blank_option} --", :value => '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %>
|
||
| 25 | </td>
|
||
| 26 | </tr>
|
||
| 27 | <% i += 1 -%>
|
||
| 28 | 0:513646585e45 | Chris | <% end -%>
|
| 29 | </tbody>
|
||
| 30 | </table>
|
||
| 31 | <p><%= submit_tag(l(:button_update)) %></p> |
||
| 32 | <% end %>
|
||
| 33 | |||
| 34 | 909:cbb26bc654de | Chris | <% end %> |