[icinga-checkins] icinga.org: icingaweb2-module-director/master: services: provide deploy buttons

git at icinga.org git at icinga.org
Fri Nov 25 21:36:19 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 4bf26b421dd441c6e79a7491aae5f3364c034ef9
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=4bf26b421dd441c6e79a7491aae5f3364c034ef9

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Nov 25 20:55:48 2016 +0100

services: provide deploy buttons

fixes #13315

---

 application/controllers/ServiceController.php |    3 +++
 application/views/scripts/host/services.phtml |    1 +
 2 files changed, 4 insertions(+)

diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php
index e4ec4af..6545c2e 100644
--- a/application/controllers/ServiceController.php
+++ b/application/controllers/ServiceController.php
@@ -210,6 +210,9 @@ class ServiceController extends ObjectController
                 parent::loadObject();
             }
         }
+        $this->view->undeployedChanges = $this->countUndeployedChanges();
+        $this->view->totalUndeployedChanges = $this->db()
+            ->countActivitiesSinceLastDeployedConfig();
 
         return $this->object;
     }
diff --git a/application/views/scripts/host/services.phtml b/application/views/scripts/host/services.phtml
index cef3a9e..f47dd60 100644
--- a/application/views/scripts/host/services.phtml
+++ b/application/views/scripts/host/services.phtml
@@ -3,6 +3,7 @@
 <h1><?= $this->escape($this->title) ?></h1>
 <span class="action-links">
 <?= $this->addLink ?>
+<?= $this->render('object/deploymentLink.phtml') ?>
 </span>
 </div>
 



More information about the icinga-checkins mailing list