From 6b60e109bb3feff911af34b13acdc75f2f9487b2 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 6 Sep 2016 14:40:56 +0200 Subject: Add multipaste queue button to navigation Signed-off-by: Florian Pritz --- application/core/MY_Controller.php | 1 + application/views/header.php | 3 +++ 2 files changed, 4 insertions(+) (limited to 'application') diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index ede6577da..b9b75b82f 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -104,6 +104,7 @@ class MY_Controller extends CI_Controller { $this->load->model("muser"); $this->data["user_logged_in"] = $this->muser->logged_in(); $this->data['redirect_uri'] = $this->uri->uri_string(); + $this->data['show_multipaste_queue'] = !empty((new \service\multipaste_queue)->get()); } protected function _require_cli_request() diff --git a/application/views/header.php b/application/views/header.php index fb7f01b0c..06f197875 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -101,6 +101,9 @@ if (is_cli_client() && !isset($force_full_html)) { + +
  • ">Multipaste queue
  • + -- cgit v1.2.3-24-g4f1b