From: Toshi MARUYAMA Date: Wed, 24 Aug 2011 06:46:28 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/boards/show.rhtml. X-Git-Tag: 1.3.0~1377 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f295d26d198f6299ca5c5737638af39d5f46edeb;p=redmine.git rename .rhtml to .html.erb of app/views/boards/show.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@6584 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb new file mode 100644 index 000000000..ac4a6fee4 --- /dev/null +++ b/app/views/boards/show.html.erb @@ -0,0 +1,73 @@ +<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> + +
+<%= link_to_if_authorized l(:label_message_new), + {:controller => 'messages', :action => 'new', :board_id => @board}, + :class => 'icon icon-add', + :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %> +<%= watcher_tag(@board, User.current) %> +
+ + + +

<%=h @board.name %>

+

<%=h @board.description %>

+ +<% if @topics.any? %> + + + + + <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> + <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %> + <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %> + + + <% @topics.each do |topic| %> + + + + + + + + <% end %> + +
<%= l(:field_subject) %><%= l(:field_author) %>
<%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %><%= link_to_user(topic.author) %><%= format_time(topic.created_on) %><%= topic.replies_count %> + <% if topic.last_reply %> + <%= authoring topic.last_reply.created_on, topic.last_reply.author %>
+ <%= link_to_message topic.last_reply %> + <% end %> +
+

<%= pagination_links_full @topic_pages, @topic_count %>

+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> + +<% html_title h(@board.name) %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> + <%= stylesheet_link_tag 'scm' %> +<% end %> diff --git a/app/views/boards/show.rhtml b/app/views/boards/show.rhtml deleted file mode 100644 index ac4a6fee4..000000000 --- a/app/views/boards/show.rhtml +++ /dev/null @@ -1,73 +0,0 @@ -<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> - -
-<%= link_to_if_authorized l(:label_message_new), - {:controller => 'messages', :action => 'new', :board_id => @board}, - :class => 'icon icon-add', - :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %> -<%= watcher_tag(@board, User.current) %> -
- - - -

<%=h @board.name %>

-

<%=h @board.description %>

- -<% if @topics.any? %> - - - - - <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> - <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %> - <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %> - - - <% @topics.each do |topic| %> - - - - - - - - <% end %> - -
<%= l(:field_subject) %><%= l(:field_author) %>
<%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %><%= link_to_user(topic.author) %><%= format_time(topic.created_on) %><%= topic.replies_count %> - <% if topic.last_reply %> - <%= authoring topic.last_reply.created_on, topic.last_reply.author %>
- <%= link_to_message topic.last_reply %> - <% end %> -
-

<%= pagination_links_full @topic_pages, @topic_count %>

-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> -<% end %> - -<% html_title h(@board.name) %> - -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> - <%= stylesheet_link_tag 'scm' %> -<% end %>