summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/committers.rhtml
blob: 6e3ba83b42d75827a7a0db78e1c7bd136490bcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<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>
	<tr>
		<th><%= l(:field_login) %></th>
		<th><%= l(:label_user) %></th>
	</tr>
</thead>
<tbody>
<% @committers.each do |committer, user_id| -%>
	<tr class="<%= cycle 'odd', 'even' %>">
		<td><%=h committer %></td>
		<td><%= select_tag "committers[#{committer}]", content_tag('option', "-- #{l :actionview_instancetag_blank_option} --", :value => '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %></td>
	</tr>
<% end -%>
</tbody>
</table>
<p><%= submit_tag(l(:button_update)) %></p>
<% end %>

<% end %>