From 077ddfbea3d9ef77a8dd8ac5c65b94f68300ffc1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 5 Jan 2012 08:02:19 +0000 Subject: [PATCH] code layout clean up app/views/issues/index.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8514 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/index.html.erb | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 1c6094935..22ca590de 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -1,14 +1,16 @@
<% if !@query.new_record? && @query.editable_by?(User.current) %> <%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %> - <%= link_to l(:button_delete), query_path(@query), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> + <%= link_to l(:button_delete), query_path(@query), :confirm => l(:text_are_you_sure), + :method => :delete, :class => 'icon icon-del' %> <% end %>

<%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %>

<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> -<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> +<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, + :method => :get, :id => 'query_form') do %> <%= hidden_field_tag 'set_filter', '1' %>
"> @@ -27,7 +29,11 @@ - <%= select_tag('group_by', options_for_select([[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, @query.group_by)) %> + <%= select_tag('group_by', + options_for_select( + [[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, + @query.group_by) + ) %>
@@ -38,7 +44,9 @@ <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> - <%= link_to_function l(:button_save), "$('query_form').action='#{ @project ? new_project_query_path : new_query_path }'; submit_query_form('query_form')", :class => 'icon icon-save' %> + <%= link_to_function l(:button_save), + "$('query_form').action='#{ @project ? new_project_query_path : new_query_path }'; submit_query_form('query_form')", + :class => 'icon icon-save' %> <% end %>

<% end %> @@ -83,8 +91,15 @@ <% end %> <% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> - <%= auto_discovery_link_tag(:atom, {:controller => 'journals', :action => 'index', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> + <%= auto_discovery_link_tag(:atom, + {:query_id => @query, :format => 'atom', + :page => nil, :key => User.current.rss_key}, + :title => l(:label_issue_plural)) %> + <%= auto_discovery_link_tag(:atom, + {:controller => 'journals', :action => 'index', + :query_id => @query, :format => 'atom', + :page => nil, :key => User.current.rss_key}, + :title => l(:label_changes_details)) %> <% end %> <%= context_menu issues_context_menu_path %>