diff --git a/application/controllers/debug.php b/application/controllers/debug.php new file mode 100644 index 0000000..99fed4e --- /dev/null +++ b/application/controllers/debug.php @@ -0,0 +1,50 @@ + + */ +class Debug extends MY_Controller { + + /** + * Constructor. + */ + public function __construct() { + parent::__construct(); + + if(ENVIRONMENT == "production") { + show_error("Debugging functions are not available in a production environment.", 400); + } + } + + public function cancel_job($experiment, $jobId) { + $this->load->model('job'); + $this->job->delete($jobId); + + redirect("experiments/detail/".$experiment); + + } +} + +/* End of file debug.php */ +/* Location: ./application/controllers/debug.php */ diff --git a/application/views/experiments/detail.php b/application/views/experiments/detail.php index 145f697..1eb6cbc 100644 --- a/application/views/experiments/detail.php +++ b/application/views/experiments/detail.php @@ -61,6 +61,16 @@ endif; ?>
+ ++ Reset this job +
+