ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/container_route_helper/textual_summary.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module ContainerRouteHelper::TextualSummary
  #
  # Groups
  #

  def textual_group_properties
    TextualGroup.new(_("Properties"), %i[name creation_timestamp resource_version host_name path])
  end

  def textual_group_relationships
    TextualGroup.new(_("Relationships"), %i[ems container_project container_service container_groups container_nodes])
  end

  def textual_group_smart_management
    TextualTags.new(_("Smart Management"), %i[tags])
  end

  #
  # Items
  #

  def textual_host_name
    @record.host_name
  end

  def textual_path
    @record.path
  end
end