2008-11-10 21:59:06 +03:00
|
|
|
<h2><%= l(:label_repository) %></h2>
|
|
|
|
|
|
|
|
<%= simple_format(l(:text_repository_usernames_mapping)) %>
|
|
|
|
|
|
|
|
<% if @committers.empty? %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% else %>
|
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({}) do %>
|
2008-11-10 21:59:06 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead>
|
2011-09-17 08:06:46 +04:00
|
|
|
<tr>
|
|
|
|
<th><%= l(:field_login) %></th>
|
|
|
|
<th><%= l(:label_user) %></th>
|
|
|
|
</tr>
|
2008-11-10 21:59:06 +03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2008-12-15 21:02:25 +03:00
|
|
|
<% i = 0 -%>
|
2008-11-10 21:59:06 +03:00
|
|
|
<% @committers.each do |committer, user_id| -%>
|
2011-09-17 08:06:46 +04:00
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<td><%=h committer %></td>
|
|
|
|
<td>
|
|
|
|
<%= hidden_field_tag "committers[#{i}][]", committer %>
|
2012-02-11 07:37:09 +04:00
|
|
|
<%= 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
|
|
|
|
) %>
|
2011-09-17 08:06:46 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% i += 1 -%>
|
2008-11-10 21:59:06 +03:00
|
|
|
<% end -%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-11-16 12:28:29 +04:00
|
|
|
<p><%= submit_tag(l(:button_save)) %></p>
|
2008-11-10 21:59:06 +03:00
|
|
|
<% end %>
|
|
|
|
|
2011-09-17 08:06:46 +04:00
|
|
|
<% end %>
|