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


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

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 = Hyrax::Workflow::StatusListService.new(self, "-workflow_state_name_ssim:#{deposited_workflow_state_name}")
  @published_list = Hyrax::Workflow::StatusListService.new(self, "workflow_state_name_ssim:#{deposited_workflow_state_name}")
end