From: Toshi MARUYAMA Date: Wed, 24 Aug 2011 06:47:14 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/boards/index.rhtml. X-Git-Tag: 1.3.0~1375 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99284cf1f662f42013cd98d936628397990e14ef;p=redmine.git rename .rhtml to .html.erb of app/views/boards/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@6586 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb new file mode 100644 index 000000000..6310f942e --- /dev/null +++ b/app/views/boards/index.html.erb @@ -0,0 +1,40 @@ +

<%= l(:label_board_plural) %>

+ + + + + + + + + +<% for board in @boards %> + + + + + + +<% end %> + +
<%= l(:label_board) %><%= l(:label_topic_plural) %><%= l(:label_message_plural) %><%= l(:label_message_last) %>
+ <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %>
+ <%=h board.description %> +
<%= board.topics_count %><%= board.messages_count %> + + <% if board.last_message %> + <%= authoring board.last_message.created_on, board.last_message.author %>
+ <%= link_to_message board.last_message %> + <% end %> +
+
+ +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %> +<% end %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> +<% end %> + +<% html_title l(:label_board_plural) %> diff --git a/app/views/boards/index.rhtml b/app/views/boards/index.rhtml deleted file mode 100644 index 6310f942e..000000000 --- a/app/views/boards/index.rhtml +++ /dev/null @@ -1,40 +0,0 @@ -

<%= l(:label_board_plural) %>

- - - - - - - - - -<% for board in @boards %> - - - - - - -<% end %> - -
<%= l(:label_board) %><%= l(:label_topic_plural) %><%= l(:label_message_plural) %><%= l(:label_message_last) %>
- <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %>
- <%=h board.description %> -
<%= board.topics_count %><%= board.messages_count %> - - <% if board.last_message %> - <%= authoring board.last_message.created_on, board.last_message.author %>
- <%= link_to_message board.last_message %> - <% end %> -
-
- -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %> -<% end %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> -<% end %> - -<% html_title l(:label_board_plural) %>