From: Go MAEDA Date: Sat, 30 Nov 2019 01:05:50 +0000 (+0000) Subject: Fix indentation in app/views/queries/_form.html.erb (#32194). X-Git-Tag: 4.2.0~1317 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca751980e556576cc0a2af1cc066d2a353ffcd65;p=redmine.git Fix indentation in app/views/queries/_form.html.erb (#32194). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19323 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb index 217995315..6a94712e0 100644 --- a/app/views/queries/_form.html.erb +++ b/app/views/queries/_form.html.erb @@ -29,42 +29,42 @@ <% end %> <% unless params[:calendar] %> -
<%= l(:label_options) %> - <% if @query.available_display_types.size > 1 %> -

- <%= available_display_types_tags(@query) %> -

-<% end %> +
<%= l(:label_options) %> + <% if @query.available_display_types.size > 1 %> +

+ <%= available_display_types_tags(@query) %> +

+ <% end %> -

-<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', - :data => {:disables => "#columns, .block_columns input"} %>

+

+ <%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', + :data => {:disables => "#columns, .block_columns input"} %>

-<% unless params[:gantt] %> -

- <%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %>

+ <% unless params[:gantt] %> +

+ <%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %>

- <% unless @query.available_block_columns.empty? %> -

- <%= available_block_columns_tags(@query) %>

- <% end %> + <% unless @query.available_block_columns.empty? %> +

+ <%= available_block_columns_tags(@query) %>

+ <% end %> - <% unless @query.available_totalable_columns.empty? %> -

- <%= available_totalable_columns_tags(@query) %>

- <% end %> -<% else %> -

- <%= hidden_field_tag 'query[draw_relations]', '0' %> - <%= hidden_field_tag 'query[draw_progress_line]', '0' %> - <%= hidden_field_tag 'query[draw_selected_columns]', '0' %> - - - -

-<% end # unless params[:gantt] %> -
-<% end # unless params[:calendar] %> + <% unless @query.available_totalable_columns.empty? %> +

+ <%= available_totalable_columns_tags(@query) %>

+ <% end %> + <% else %> +

+ <%= hidden_field_tag 'query[draw_relations]', '0' %> + <%= hidden_field_tag 'query[draw_progress_line]', '0' %> + <%= hidden_field_tag 'query[draw_selected_columns]', '0' %> + + + +

+ <% end %> +
+<% end %>
<%= l(:label_filter_plural) %> @@ -72,29 +72,29 @@
<% if params[:calendar].nil? && params[:gantt].nil? %> -
<%= l(:label_sort) %> -<% 3.times do |i| %> -<%= content_tag(:span, "#{i+1}:", :class => 'query_sort_criteria_count')%> -<%= label_tag "query_sort_criteria_attribute_" + i.to_s, - l(:description_query_sort_criteria_attribute), :class => "hidden-for-sighted" %> -<%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i)), - :id => "query_sort_criteria_attribute_" + i.to_s)%> -<%= label_tag "query_sort_criteria_direction_" + i.to_s, - l(:description_query_sort_criteria_direction), :class => "hidden-for-sighted" %> -<%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i)), - :id => "query_sort_criteria_direction_" + i.to_s) %> -
-<% end %> -
+
<%= l(:label_sort) %> + <% 3.times do |i| %> + <%= content_tag(:span, "#{i+1}:", :class => 'query_sort_criteria_count')%> + <%= label_tag "query_sort_criteria_attribute_" + i.to_s, + l(:description_query_sort_criteria_attribute), :class => "hidden-for-sighted" %> + <%= select_tag("query[sort_criteria][#{i}][]", + options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i)), + :id => "query_sort_criteria_attribute_" + i.to_s)%> + <%= label_tag "query_sort_criteria_direction_" + i.to_s, + l(:description_query_sort_criteria_direction), :class => "hidden-for-sighted" %> + <%= select_tag("query[sort_criteria][#{i}][]", + options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i)), + :id => "query_sort_criteria_direction_" + i.to_s) %> +
+ <% end %> +
<% end %> <% unless params[:calendar] %> -<%= content_tag 'fieldset', :id => 'columns' do %> -<%= l(:field_column_names) %> -<%= render_query_columns_selection(query) %> -<% end %> + <%= content_tag 'fieldset', :id => 'columns' do %> + <%= l(:field_column_names) %> + <%= render_query_columns_selection(query) %> + <% end %> <% end %>