Class: Hyrax::Admin::WorkflowsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/hyrax/admin/workflows_controller.rb

Overview

Presents a list of works in workflow

Instance Method Summary collapse

Instance Method Details

#indexObject



13
14
15
16
17
18
19
20
21
# File 'app/controllers/hyrax/admin/workflows_controller.rb', line 13

def index
  add_breadcrumb t(:'hyrax.controls.home'), root_path
  add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path
  add_breadcrumb t(:'hyrax.admin.sidebar.tasks'), '#'
  add_breadcrumb t(:'hyrax.admin.sidebar.workflow_review'), request.path

  @status_list = actionable_objects.reject(&:published?)
  @published_list = actionable_objects.select(&:published?)
end