From: Toshi MARUYAMA Date: Tue, 23 Aug 2011 08:39:34 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/repositories/committers.rhtml. X-Git-Tag: 1.3.0~1424 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56abefca915da3e6025d7de09160c84e23a73bee;p=redmine.git rename .rhtml to .html.erb of app/views/repositories/committers.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6537 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb new file mode 100644 index 000000000..597a414aa --- /dev/null +++ b/app/views/repositories/committers.html.erb @@ -0,0 +1,34 @@ +

<%= l(:label_repository) %>

+ +<%= simple_format(l(:text_repository_usernames_mapping)) %> + +<% if @committers.empty? %> +

<%= l(:label_no_data) %>

+<% else %> + +<% form_tag({}) do %> + + + + + + + + +<% i = 0 -%> +<% @committers.each do |committer, user_id| -%> + + + + + <% i += 1 -%> +<% end -%> + +
<%= l(:field_login) %><%= l(:label_user) %>
<%=h committer %> + <%= 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) %> +
+

<%= submit_tag(l(:button_update)) %>

+<% end %> + +<% end %> \ No newline at end of file diff --git a/app/views/repositories/committers.rhtml b/app/views/repositories/committers.rhtml deleted file mode 100644 index 597a414aa..000000000 --- a/app/views/repositories/committers.rhtml +++ /dev/null @@ -1,34 +0,0 @@ -

<%= l(:label_repository) %>

- -<%= simple_format(l(:text_repository_usernames_mapping)) %> - -<% if @committers.empty? %> -

<%= l(:label_no_data) %>

-<% else %> - -<% form_tag({}) do %> - - - - - - - - -<% i = 0 -%> -<% @committers.each do |committer, user_id| -%> - - - - - <% i += 1 -%> -<% end -%> - -
<%= l(:field_login) %><%= l(:label_user) %>
<%=h committer %> - <%= 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) %> -
-

<%= submit_tag(l(:button_update)) %>

-<% end %> - -<% end %> \ No newline at end of file