Sha256: 8a79c866aa5d8d7479a52569ec2f818d4a86f3389bb6adb40b7ab6692bf16f51

Contents?: true

Size: 1016 Bytes

Versions: 36

Compression:

Stored size: 1016 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

36 entries across 36 versions & 1 rubygems

Version Path
foreman-tasks-4.1.5 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.1.4 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.1.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.6 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-5.0.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.1.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.1.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.0.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.1.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.5 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-4.0.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.4 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-3.0.0 db/seeds.d/30-notification_blueprints.rb