committers.html.erb
34 lines
| 879 B
| text/plain
|
TextLexer
|
r2004 | <h2><%= l(:label_repository) %></h2> | ||
<%= simple_format(l(:text_repository_usernames_mapping)) %> | ||||
<% if @committers.empty? %> | ||||
<p class="nodata"><%= l(:label_no_data) %></p> | ||||
<% else %> | ||||
<% form_tag({}) do %> | ||||
<table class="list"> | ||||
<thead> | ||||
|
r7169 | <tr> | ||
<th><%= l(:field_login) %></th> | ||||
<th><%= l(:label_user) %></th> | ||||
</tr> | ||||
|
r2004 | </thead> | ||
<tbody> | ||||
|
r2135 | <% i = 0 -%> | ||
|
r2004 | <% @committers.each do |committer, user_id| -%> | ||
|
r7169 | <tr class="<%= cycle 'odd', 'even' %>"> | ||
<td><%=h committer %></td> | ||||
<td> | ||||
<%= hidden_field_tag "committers[#{i}][]", committer %> | ||||
<%= 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) %> | ||||
</td> | ||||
</tr> | ||||
<% i += 1 -%> | ||||
|
r2004 | <% end -%> | ||
</tbody> | ||||
</table> | ||||
<p><%= submit_tag(l(:button_update)) %></p> | ||||
<% end %> | ||||
|
r7169 | <% end %> | ||