ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::MiqWidgetsCenter < ApplicationHelper::Toolbar::Basic
  button_group('widget_reloading', [
    button(
      :widget_refresh,
      'fa fa-refresh fa-lg',
      N_('Refresh Widgets'),
      nil),
  ])
  button_group('widget_vmdb', [
    select(
      :widget_vmdb_choice,
      nil,
      t = N_('Configuration'),
      t,
      :items => [
        button(
          :widget_new,
          'pficon pficon-add-circle-o fa-lg',
          t = N_('Add a new Widget'),
          t,
          :klass => ApplicationHelper::Button::WidgetNew),
      ]
    ),
  ])
end