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:
parent
b817973038
commit
3b27acb620
@ -106,7 +106,6 @@ Layout/DotPosition:
|
|||||||
Layout/ElseAlignment:
|
Layout/ElseAlignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/attachments_helper.rb'
|
- 'app/helpers/attachments_helper.rb'
|
||||||
- 'app/helpers/queries_helper.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/EmptyLineAfterGuardClause:
|
Layout/EmptyLineAfterGuardClause:
|
||||||
|
|||||||
@ -157,7 +157,8 @@ module QueriesHelper
|
|||||||
|
|
||||||
def total_tag(column, value)
|
def total_tag(column, value)
|
||||||
label = content_tag('span', "#{column.caption}:")
|
label = content_tag('span', "#{column.caption}:")
|
||||||
value = if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
|
value =
|
||||||
|
if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
|
||||||
format_hours(value)
|
format_hours(value)
|
||||||
else
|
else
|
||||||
format_object(value)
|
format_object(value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user