Sha256: 96e2f4b18e6b55e2d361ae2ce6a3313acda9086b27605e2f109ae6f868bf7d49

Contents?: true

Size: 687 Bytes

Versions: 24

Compression:

Stored size: 687 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')
          ]
      }
  }
]

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman-tasks-1.1.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.6 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-1.0.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-1.0.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.5 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.4 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.16.3 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.11 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.16.2 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.10 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.16.1 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.17.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.9 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.8 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.7 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.16.0 db/seeds.d/30-notification_blueprints.rb
foreman-tasks-0.15.6 db/seeds.d/30-notification_blueprints.rb