From: Toshi MARUYAMA Date: Fri, 2 Sep 2011 04:51:40 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/queries/index.rhtml. X-Git-Tag: 1.3.0~908 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8fc59c4c45e2d3d08bbbeb9568101ab2d37299c;p=redmine.git rename .rhtml to .html.erb of app/views/queries/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@7058 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/queries/index.html.erb b/app/views/queries/index.html.erb new file mode 100644 index 000000000..aa2a94a84 --- /dev/null +++ b/app/views/queries/index.html.erb @@ -0,0 +1,27 @@ +
+<%= link_to_if_authorized l(:label_query_new), {:controller => 'queries', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> +
+ +

<%= l(:label_query_plural) %>

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

<%=l(:label_no_data)%>

+<% else %> + + <% @queries.each do |query| %> + + + + + <% end %> +
+ <%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %> + + + <% if query.editable_by?(User.current) %> + <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => query}, :class => 'icon icon-edit' %> + <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> + + <% end %> +
+<% end %> diff --git a/app/views/queries/index.rhtml b/app/views/queries/index.rhtml deleted file mode 100644 index aa2a94a84..000000000 --- a/app/views/queries/index.rhtml +++ /dev/null @@ -1,27 +0,0 @@ -
-<%= link_to_if_authorized l(:label_query_new), {:controller => 'queries', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> -
- -

<%= l(:label_query_plural) %>

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

<%=l(:label_no_data)%>

-<% else %> - - <% @queries.each do |query| %> - - - - - <% end %> -
- <%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %> - - - <% if query.editable_by?(User.current) %> - <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => query}, :class => 'icon icon-edit' %> - <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> - - <% end %> -
-<% end %>