Sha256: f65a9086b2fbf7c624275b76960b80693839a3d9458602dc4b3559f3b4890c3f

Contents?: true

Size: 903 Bytes

Versions: 3

Compression:

Stored size: 903 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",
  }
]

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman-tasks-1.1.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-1.1.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-1.1.1 db/seeds.d/30-notification_blueprints.rb