Sha256: 87fdc5dd6fc82aef01b4f826bd9b5f92eb823c66b1d271345be3b891b6c30c6b

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

ActiveAdmin.register JobNotifier::Job, as: "Job" do
  actions :index, :show

  filter :status
  filter :notified
  filter :created_at

  index do
    id_column
    tag_column :status
    column :description
    bool_column :notified
    column :created_at
    actions
  end

  show do
    attributes_table do
      row :id
      tag_row :status
      row :description
      bool_row :notified
      row :created_at
    end

    panel JobNotifier::Job.human_attribute_name(:result) do
      ActiveadminJobs::JobResultRenderer.new(self).render
    end unless resource.result.blank?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_jobs-0.1.2 app/admin/jobs.rb
activeadmin_jobs-0.1.1 app/admin/jobs.rb
activeadmin_jobs-0.1.0 app/admin/jobs.rb