From 18383c3251cdf4785be00ba8fc092fb2734b26a8 Mon Sep 17 00:00:00 2001 From: lgalis Date: Wed, 28 Feb 2018 11:34:32 -0500 Subject: [PATCH] Remove a few comment lines and spaces --- app/helpers/service_helper/textual_summary.rb | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/app/helpers/service_helper/textual_summary.rb b/app/helpers/service_helper/textual_summary.rb index 754b4eb6eec7..f7a832ff69e9 100644 --- a/app/helpers/service_helper/textual_summary.rb +++ b/app/helpers/service_helper/textual_summary.rb @@ -4,9 +4,7 @@ module ServiceHelper::TextualSummary include TextualMixins::TextualName include GenericObjectHelper::TextualSummary - # # Groups - # def textual_group_properties TextualGroup.new(_("Properties"), %i(name description guid)) @@ -79,9 +77,8 @@ def textual_group_generic_objects TextualGroup.new(_("Generic Objects"), %i(generic_object_instances)) end - # # Items - # + def textual_guid {:label => _("Management Engine GUID"), :value => @record.guid} end @@ -148,12 +145,10 @@ def textual_parent_service def textual_orchestration_stack ost = @record.try(:orchestration_stack) if ost && !ost.id.present? - { - :label => _("Orchestration Stack"), - :image => "100/orchestration_stack.png", - :value => ost.name, - :title => _("Invalid Stack") - } + {:label => _("Orchestration Stack"), + :image => "100/orchestration_stack.png", + :value => ost.name, + :title => _("Invalid Stack")} elsif ost ost end @@ -284,12 +279,10 @@ def fetch_job(type) def fetch_job_plays items = @job.job_plays.sort_by(&:start_time).collect do |play| - [ - play.name, - format_timezone(play.start_time), - format_timezone(play.finish_time), - play.finish_time && play.start_time ? calculate_elapsed_time(play.start_time, play.finish_time) : '/A' - ] + [play.name, + format_timezone(play.start_time), + format_timezone(play.finish_time), + play.finish_time && play.start_time ? calculate_elapsed_time(play.start_time, play.finish_time) : '/A'] end.sort TextualTable.new(