1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

code cleanup: rubocop: fix Layout/ElseAlignment in app/helpers/queries_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18712 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-17 15:28:34 +00:00
parent b817973038
commit 3b27acb620
2 changed files with 6 additions and 6 deletions

View File

@ -106,7 +106,6 @@ Layout/DotPosition:
Layout/ElseAlignment:
Exclude:
- 'app/helpers/attachments_helper.rb'
- 'app/helpers/queries_helper.rb'
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:

View File

@ -157,11 +157,12 @@ module QueriesHelper
def total_tag(column, value)
label = content_tag('span', "#{column.caption}:")
value = if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
format_hours(value)
else
format_object(value)
end
value =
if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
format_hours(value)
else
format_object(value)
end
value = content_tag('span', value, :class => 'value')
content_tag('span', label + " " + value, :class => "total-for-#{column.name.to_s.dasherize}")
end