summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/core/MY_Controller.php1
-rw-r--r--application/views/header.php3
-rw-r--r--public_html/data/css/style.css4
3 files changed, 8 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>
diff --git a/public_html/data/css/style.css b/public_html/data/css/style.css
index 8868c5995..18ff1ee4f 100644
--- a/public_html/data/css/style.css
+++ b/public_html/data/css/style.css
@@ -54,6 +54,10 @@
height: 160px;
}
+.nav li.multipaste_button a {
+ color: #fff;
+}
+
.ajaxFeedback {
display: inline-block;
}