Sha256: 42c85b535c23553b08874bb7b7efc61d956f0722b9f9db0f78ca39f12a1e05ad

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

module ForemanTasks
  class WidgetManager
    DEFAULT_WIDGETS = [
      {:template=>'foreman_tasks/tasks/dashboard/tasks_status', :sizex=>6, :sizey=>1, :name=> N_('Tasks Status table')},
      {:template=>'foreman_tasks/tasks/dashboard/latest_tasks_in_error_warning', :sizex=>6, :sizey=>1,:name=> N_('Tasks in Error/Warning')}
    ]

    def self.register_widgets
      if ForemanTasks.dynflow.required?
        DEFAULT_WIDGETS.each do |widget|
          Dashboard::Manager.register_default_widget(widget)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman-tasks-0.6.14 lib/foreman_tasks/widget_manager.rb