diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-09-06 14:40:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:26:31 +0100 |
commit | 6b60e109bb3feff911af34b13acdc75f2f9487b2 (patch) | |
tree | ff5045dbf90efc5eb07bea0a8117ebd71b9242d5 /application | |
parent | b78773f3fb954654515d551bef9cb8e68cd4b05a (diff) |
Add multipaste queue button to navigation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r-- | application/core/MY_Controller.php | 1 | ||||
-rw-r--r-- | application/views/header.php | 3 |
2 files changed, 4 insertions, 0 deletions
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)) { <?php include "user/nav.php"; ?> </ul> </li> + <?php if (isset($show_multipaste_queue) && $show_multipaste_queue) {?> + <li class="btn-primary multipaste_button"><a href="<?php echo site_url("file/multipaste/queue"); ?>">Multipaste queue</a></li> + <?php } ?> <?php } ?> </ul> </div> |