committers.html.erb
42 lines
| 1.1 KiB
| 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 %> | ||||
|
r9346 | <%= form_tag({}) do %> | ||
|
r2004 | <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' %>"> | ||
|
r13661 | <td><%= committer %></td> | ||
|
r7169 | <td> | ||
|
r13262 | <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %> | ||
|
r8718 | <%= 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 | ||||
) %> | ||||
|
r7169 | </td> | ||
</tr> | ||||
<% i += 1 -%> | ||||
|
r2004 | <% end -%> | ||
</tbody> | ||||
</table> | ||||
|
r12054 | <p><%= submit_tag(l(:button_save)) %></p> | ||
|
r2004 | <% end %> | ||
|
r7169 | <% end %> | ||