From: Toshi MARUYAMA Date: Tue, 30 Aug 2011 14:18:17 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/news/_news.rhtml. X-Git-Tag: 1.3.0~1147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c459649b529bf500b2add77a59ecdbdecf4e329d;p=redmine.git rename .rhtml to .html.erb of app/views/news/_news.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@6815 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/news/_news.html.erb b/app/views/news/_news.html.erb new file mode 100644 index 000000000..ddbaecabf --- /dev/null +++ b/app/views/news/_news.html.erb @@ -0,0 +1,6 @@ +

<%= link_to_project(news.project) + ': ' unless @project %> +<%= link_to h(news.title), news_path(news) %> +<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %> +
+<% unless news.summary.blank? %><%=h news.summary %>
<% end %> +<%= authoring news.created_on, news.author %>

diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml deleted file mode 100644 index ddbaecabf..000000000 --- a/app/views/news/_news.rhtml +++ /dev/null @@ -1,6 +0,0 @@ -

<%= link_to_project(news.project) + ': ' unless @project %> -<%= link_to h(news.title), news_path(news) %> -<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %> -
-<% unless news.summary.blank? %><%=h news.summary %>
<% end %> -<%= authoring news.created_on, news.author %>