ManageIQ/manageiq-ui-classic

View on GitHub
app/presenters/tree_builder_ops_diagnostics.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class TreeBuilderOpsDiagnostics < TreeBuilderOps
  private

  def tree_init_options
    {:open_all => true}
  end

  def root_options
    region = MiqRegion.my_region
    text = _("%{product} Region: %{region_description} [%{region}]") % {:region_description => region.description,
                                                                        :region             => region.region,
                                                                        :product            => Vmdb::Appliance.PRODUCT_NAME}
    {
      :text    => text,
      :tooltip => text,
      :icon    => 'pficon pficon-regions'
    }
  end
end