Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
42
app/views/repositories/committers.html.erb
Normal file
42
app/views/repositories/committers.html.erb
Normal file
|
@ -0,0 +1,42 @@
|
|||
<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>
|
||||
<% i = 0 -%>
|
||||
<% @committers.each do |committer, user_id| -%>
|
||||
<tr>
|
||||
<td><%= committer %></td>
|
||||
<td>
|
||||
<%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
|
||||
<%= 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 -%>
|
||||
<% end -%>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><%= submit_tag(l(:button_save)) %></p>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue