From b3dcc13d0c5f61a55e69165814439b314309f13f Mon Sep 17 00:00:00 2001 From: Renzo Date: Sat, 30 Jul 2016 00:19:50 -0500 Subject: [PATCH] Changes to footer * Added "Force restart" option to processing jobs * "Restart" and the new link are only shown to admins as only admins have access to that action --- app/views/job_task/show.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/job_task/show.php b/app/views/job_task/show.php index 960de2f..940aba5 100755 --- a/app/views/job_task/show.php +++ b/app/views/job_task/show.php @@ -11,7 +11,9 @@ contentFor('subnavbar', function(){ ?>
  • linkTo($this->t(".nav.list"), ['action' => "index"]) ?>
  • - job_task->status == "error") : ?> + is_admin() && $this->job_task->status == "error") : ?>
  • linkTo($this->t(".nav.restart"), ["#restart", 'id' => $this->job_task->id]) ?>
  • + is_admin() && $this->job_task->status != 'pending') : ?> +
  • linkTo('Force restart', ["#restart", 'id' => $this->job_task->id]) ?>