From: Toshi MARUYAMA Date: Sat, 27 Aug 2011 03:18:44 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/documents/index.rhtml. X-Git-Tag: 1.3.0~1301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=acc7b7e5f5304d0a8fa58a8c04d60895922bed61;p=redmine.git rename .rhtml to .html.erb of app/views/documents/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@6661 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb new file mode 100644 index 000000000..7449b67c6 --- /dev/null +++ b/app/views/documents/index.html.erb @@ -0,0 +1,39 @@ +
+<%= link_to_if_authorized l(:label_document_new), + {:controller => 'documents', :action => 'new', :project_id => @project}, + :class => 'icon icon-add', + :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %> +
+ + + +

<%=l(:label_document_plural)%>

+ +<% if @grouped.empty? %>

<%= l(:label_no_data) %>

<% end %> + +<% @grouped.keys.sort.each do |group| %> +

<%= group %>

+ <%= render :partial => 'documents/document', :collection => @grouped[group] %> +<% end %> + +<% content_for :sidebar do %> +

<%= l(:label_sort_by, '') %>

+ <% form_tag({}, :method => :get) do %> +
+
+
+ + <% end %> +<% end %> + +<% html_title(l(:label_document_plural)) -%> diff --git a/app/views/documents/index.rhtml b/app/views/documents/index.rhtml deleted file mode 100644 index 7449b67c6..000000000 --- a/app/views/documents/index.rhtml +++ /dev/null @@ -1,39 +0,0 @@ -
-<%= link_to_if_authorized l(:label_document_new), - {:controller => 'documents', :action => 'new', :project_id => @project}, - :class => 'icon icon-add', - :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %> -
- - - -

<%=l(:label_document_plural)%>

- -<% if @grouped.empty? %>

<%= l(:label_no_data) %>

<% end %> - -<% @grouped.keys.sort.each do |group| %> -

<%= group %>

- <%= render :partial => 'documents/document', :collection => @grouped[group] %> -<% end %> - -<% content_for :sidebar do %> -

<%= l(:label_sort_by, '') %>

- <% form_tag({}, :method => :get) do %> -
-
-
- - <% end %> -<% end %> - -<% html_title(l(:label_document_plural)) -%>