Sha256: e483a665d1620a9042aafe74c7c7a1146d2a7de1157127010dc161b01ff3a2eb

Contents?: true

Size: 1009 Bytes

Versions: 5

Compression:

Stored size: 1009 Bytes

Contents

blueprints = [
  {
    group: N_('Tasks'),
    name: 'tasks_paused_admin',
    message: "DYNAMIC",
    level: 'warning',
    actions:
      {
        links:
          [
            href: "/foreman_tasks/tasks?search=#{CGI.escape('state=paused')}",
            title: N_('List of tasks')
          ]
      }
  },

  {
    group: N_('Tasks'),
    name: 'tasks_paused_owner',
    message: "The task '%{subject}' got paused",
    level: 'warning',
    actions:
      {
        links:
          [
            path_method: :foreman_tasks_task_path,
            title: N_('Task Details')
          ]
      }
  },

  {
    group: N_('Tasks'),
    name: 'tasks_bulk_resume',
    level: 'info',
    message: "DYNAMIC",
  },

  {
    group: N_('Tasks'),
    name: 'tasks_bulk_cancel',
    level: 'info',
    message: "DYNAMIC",
  },

  {
    group: N_('Tasks'),
    name: 'tasks_bulk_stop',
    level: 'info',
    message: "DYNAMIC",
  }
]

blueprints.each { |blueprint| UINotifications::Seed.new(blueprint).configure }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman-tasks-2.0.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-2.0.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-2.0.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-2.0.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-1.2.0 db/seeds.d/30-notification_blueprints.rb