[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: show/activitylog: show whether object has been...

git at icinga.org git at icinga.org
Tue Jun 7 15:59:15 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 6dee2d073375013f219786d8662db1d5f805ec74
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=6dee2d073375013f219786d8662db1d5f805ec74

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 15:35:55 2016 +0200

show/activitylog: show whether object has been...

...enabled or disabled, regardless of how it is rendered

---

 application/views/scripts/show/activitylog.phtml |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/application/views/scripts/show/activitylog.phtml b/application/views/scripts/show/activitylog.phtml
index cdf2ca8..9d78482 100644
--- a/application/views/scripts/show/activitylog.phtml
+++ b/application/views/scripts/show/activitylog.phtml
@@ -58,6 +58,18 @@ $url = $this->url()->without('checksum')->without('show');
     ?></td>
   </tr>
 <?php endif ?>
+<?php if ($this->hasBeenEnabled): ?>
+  <tr>
+    <th><?= $this->translate('Rendering') ?></th>
+    <td><?= $this->translate('This object has been enabled') ?></td>
+  </tr>
+<?php endif ?>
+<?php if ($this->hasBeenDisabled): ?>
+  <tr>
+    <th><?= $this->translate('Rendering') ?></th>
+    <td><?= $this->translate('This object has been disabled') ?></td>
+  </tr>
+<?php endif ?>
   <tr>
     <th><?= $this->translate('Checksum') ?></th>
     <td><?= $this->entry->checksum ?></td>



More information about the icinga-checkins mailing list