[icinga-checkins] icinga.org: icingaweb2-module-director/master: multi-edit: show deployment link

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


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

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

multi-edit: show deployment link

---

 application/views/scripts/objects/form.phtml          |    3 +++
 library/Director/Web/Controller/ObjectsController.php |    3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/application/views/scripts/objects/form.phtml b/application/views/scripts/objects/form.phtml
index 7adf827..f823def 100644
--- a/application/views/scripts/objects/form.phtml
+++ b/application/views/scripts/objects/form.phtml
@@ -1,6 +1,9 @@
 <div class="controls">
 <?= $this->tabs ?>
 <h1><?= $this->escape($this->title) ?></h1>
+<span class="action-links">
+<?= $this->render('object/deploymentLink.phtml') ?>
+</span>
 </div>
 
 <div class="content">
diff --git a/library/Director/Web/Controller/ObjectsController.php b/library/Director/Web/Controller/ObjectsController.php
index 9ea258b..1ec38b4 100644
--- a/library/Director/Web/Controller/ObjectsController.php
+++ b/library/Director/Web/Controller/ObjectsController.php
@@ -190,7 +190,8 @@ abstract class ObjectsController extends ActionController
             ->setObjects($objects)
             ->pickElementsFrom($this->loadForm($formName), $this->multiEdit)
             ->handleRequest();
-
+        $this->view->totalUndeployedChanges = $this->db()
+            ->countActivitiesSinceLastDeployedConfig();
         $this->setViewScript('objects/form');
     }
 



More information about the icinga-checkins mailing list