REBELinBLUE\Deployer\Http\Controllers\Admin\TemplateController::listing PHP Method

listing() public method

Display a listing of before/after commands for the supplied stage.
public listing ( integer $target_id, integer $action ) : Illuminate\View\View
$target_id integer
$action integer
return Illuminate\View\View
    public function listing($target_id, $action)
    {
        $types = ['clone' => Command::DO_CLONE, 'install' => Command::DO_INSTALL, 'activate' => Command::DO_ACTIVATE, 'purge' => Command::DO_PURGE];
        $template = $this->templateRepository->getById($target_id);
        $target = 'template';
        $breadcrumb = [['url' => route('admin.templates.index'), 'label' => Lang::get('templates.label')], ['url' => route('admin.templates.show', ['templates' => $template->id]), 'label' => $template->name]];
        return view('commands.listing', ['breadcrumb' => $breadcrumb, 'title' => Lang::get('commands.' . strtolower($action)), 'subtitle' => $template->name, 'project' => $template, 'target_type' => $target, 'target_id' => $template->id, 'action' => $types[$action], 'commands' => $this->repository->getForDeployStep($template->id, $target, $types[$action])]);
    }