mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +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:
parent
b817973038
commit
3b27acb620
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user