ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/toolbar/summary_center.rb

Summary

Maintainability
A
15 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::SummaryCenter < ApplicationHelper::Toolbar::Basic
  button_group('record_summary', [
    button(
      :show_summary,
      'fa fa-arrow-left fa-lg',
      proc do
        _('Show %{object_name} Summary') % {:object_name => @record.name}
      end,
      nil,
      :url       => "/show",
      :url_parms => Proc.new { "?id=#{@record.id}" },
      :klass     => ApplicationHelper::Button::ShowSummary),
  ])
end