From 9d8b2b540aea37e002335af9f8e9f1b5f646ed09 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Wed, 28 Sep 2011 17:54:53 +0200 Subject: [PATCH 1/5] Show experiment creators in shared projects --- application/views/projects/detail.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/application/views/projects/detail.php b/application/views/projects/detail.php index 352e2a0..962f99c 100644 --- a/application/views/projects/detail.php +++ b/application/views/projects/detail.php @@ -39,6 +39,13 @@ + 0 || $project['public'] == 1): +?> + + @@ -63,6 +70,20 @@ ?> + 0 || $project['public'] == 1): + if ($experiment['creator_id'] == $this->access->profile()->id): +?> + +user->getById($experiment['creator_id']); +?> + + Date: Wed, 28 Sep 2011 18:00:43 +0200 Subject: [PATCH 2/5] Hide link for editing experiments if a job exists --- application/views/projects/detail.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/views/projects/detail.php b/application/views/projects/detail.php index 962f99c..c574a54 100644 --- a/application/views/projects/detail.php +++ b/application/views/projects/detail.php @@ -96,11 +96,9 @@ access->profile()->id || $this->access->isAdmin()): -?> - | - + | | Date: Wed, 28 Sep 2011 18:15:15 +0200 Subject: [PATCH 3/5] Show result link only for finished jobs --- application/views/projects/detail.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/application/views/projects/detail.php b/application/views/projects/detail.php index c574a54..7172586 100644 --- a/application/views/projects/detail.php +++ b/application/views/projects/detail.php @@ -149,8 +149,18 @@ - | - + + + + - + + Date: Wed, 28 Sep 2011 18:33:54 +0200 Subject: [PATCH 4/5] Show delete button for experiments with finished jobs --- application/views/experiments/detail.php | 5 +++++ application/views/projects/detail.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/application/views/experiments/detail.php b/application/views/experiments/detail.php index a750e89..9fff889 100644 --- a/application/views/experiments/detail.php +++ b/application/views/experiments/detail.php @@ -50,6 +50,11 @@ access->profile()->id || $this->access->isAdmin()): + if (isset($job['id']) && $job['finished_at'] != '0000-00-00 00:00:00'): +?> + + | | + + | Date: Wed, 28 Sep 2011 18:52:04 +0200 Subject: [PATCH 5/5] Delete superfluous program controller --- application/controllers/programs.php | 59 ---------------------------- 1 file changed, 59 deletions(-) delete mode 100644 application/controllers/programs.php diff --git a/application/controllers/programs.php b/application/controllers/programs.php deleted file mode 100644 index f2cf20b..0000000 --- a/application/controllers/programs.php +++ /dev/null @@ -1,59 +0,0 @@ - - */ -class Programs extends MY_Controller { - - /** - * Constructor. - */ - public function __construct() { - parent::__construct(); - $this->load->model('program'); - } - - /** - * Show a list of all available programs. - */ - public function index() { - $programs = $this->program->getAll(); - - $tpl['programs'] = $programs; - $this->load->view('program/list', $tpl); - } - - /** - * Show detailed information about a program. - * - * @param type $prg_id The program's id - */ - public function detail($prg_id) { - $program = $this->program->getById($prg_id); - - $tpl['program'] = $program; - $this->load->view('program/detail', $tpl); - } -}