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

<%= l(:label_home) %>

+ +
+ <%= textilizable Setting.welcome_text %> + <% if @news.any? %> +
+

<%=l(:label_news_latest)%>

+ <%= render :partial => 'news/news', :collection => @news %> + <%= link_to l(:label_news_view_all), :controller => 'news' %> +
+ <% end %> + <%= call_hook(:view_welcome_index_left, :projects => @projects) %> +
+ +
+ <% if @projects.any? %> +
+

<%=l(:label_project_latest)%>

+
    + <% for project in @projects %> + <% @project = project %> +
  • + <%= link_to_project project %> (<%= format_time(project.created_on) %>) + <%= textilizable project.short_description, :project => project %> +
  • + <% end %> + <% @project = nil %> +
+
+ <% end %> + <%= call_hook(:view_welcome_index_right, :projects => @projects) %> +
+ +<% content_for :header_tags do %> +<%= stylesheet_link_tag 'scm' %> +<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, + :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> +<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, + :title => "#{Setting.app_title}: #{l(:label_activity)}") %> +<% end %> diff --git a/app/views/welcome/index.rhtml b/app/views/welcome/index.rhtml deleted file mode 100644 index e9e5944f7..000000000 --- a/app/views/welcome/index.rhtml +++ /dev/null @@ -1,40 +0,0 @@ -

<%= l(:label_home) %>

- -
- <%= textilizable Setting.welcome_text %> - <% if @news.any? %> -
-

<%=l(:label_news_latest)%>

- <%= render :partial => 'news/news', :collection => @news %> - <%= link_to l(:label_news_view_all), :controller => 'news' %> -
- <% end %> - <%= call_hook(:view_welcome_index_left, :projects => @projects) %> -
- -
- <% if @projects.any? %> -
-

<%=l(:label_project_latest)%>

-
    - <% for project in @projects %> - <% @project = project %> -
  • - <%= link_to_project project %> (<%= format_time(project.created_on) %>) - <%= textilizable project.short_description, :project => project %> -
  • - <% end %> - <% @project = nil %> -
-
- <% end %> - <%= call_hook(:view_welcome_index_right, :projects => @projects) %> -
- -<% content_for :header_tags do %> -<%= stylesheet_link_tag 'scm' %> -<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, - :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> -<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, - :title => "#{Setting.app_title}: #{l(:label_activity)}") %> -<% end %>