From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 10:54:48 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/my/page.rhtml. X-Git-Tag: 1.3.0~988 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc591750bea7baa12f13ae51808230d2175129e4;p=redmine.git rename .rhtml to .html.erb of app/views/my/page.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@6975 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/my/page.html.erb b/app/views/my/page.html.erb new file mode 100644 index 000000000..608e23326 --- /dev/null +++ b/app/views/my/page.html.erb @@ -0,0 +1,36 @@ +
+ <%= link_to l(:label_personalize_page), :action => 'page_layout' %> +
+ +

<%=l(:label_my_page)%>

+ +
+ <% @blocks['top'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['top'] %> +
+ +
+ <% @blocks['left'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['left'] %> +
+ +
+ <% @blocks['right'].each do |b| + next unless MyController::BLOCKS.keys.include? b %> +
+ <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> +
+ <% end if @blocks['right'] %> +
+ +<%= context_menu :controller => 'issues', :action => 'context_menu' %> + +<% html_title(l(:label_my_page)) -%> diff --git a/app/views/my/page.rhtml b/app/views/my/page.rhtml deleted file mode 100644 index 608e23326..000000000 --- a/app/views/my/page.rhtml +++ /dev/null @@ -1,36 +0,0 @@ -
- <%= link_to l(:label_personalize_page), :action => 'page_layout' %> -
- -

<%=l(:label_my_page)%>

- -
- <% @blocks['top'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['top'] %> -
- -
- <% @blocks['left'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['left'] %> -
- -
- <% @blocks['right'].each do |b| - next unless MyController::BLOCKS.keys.include? b %> -
- <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> -
- <% end if @blocks['right'] %> -
- -<%= context_menu :controller => 'issues', :action => 'context_menu' %> - -<% html_title(l(:label_my_page)) -%>