[icinga-checkins] icinga.org: icingaweb2/feature/setup-wizard-7163: Show notification bar in the wizard as well

git at icinga.org git at icinga.org
Tue Nov 4 13:53:49 CET 2014


Module: icingaweb2
Branch: feature/setup-wizard-7163
Commit: ab5df7d2ba3a60f0951d5f81e4a7a8124a1920d6
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=ab5df7d2ba3a60f0951d5f81e4a7a8124a1920d6

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Tue Nov  4 13:48:09 2014 +0100

Show notification bar in the wizard as well

refs #7163

---

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

diff --git a/application/views/scripts/setup/index.phtml b/application/views/scripts/setup/index.phtml
index ac6d7a8..ddc2973 100644
--- a/application/views/scripts/setup/index.phtml
+++ b/application/views/scripts/setup/index.phtml
@@ -1,5 +1,7 @@
 <?php
 
+use Icinga\Web\Notification;
+
 $pages = $wizard->getPages();
 $finished = isset($success);
 $configPages = array_slice($pages, 2, count($pages) - 4, true);
@@ -13,6 +15,16 @@ $maxProgress = @max(array_keys(array_filter(
 )));
 
 ?>
+<ul id="notifications"><?php
+
+$notifications = Notification::getInstance();
+if ($notifications->hasMessages()) {
+    foreach ($notifications->getMessages() as $m) {
+        echo '<li class="' . $m->type . '">' . $this->escape($m->message) . '</li>';
+    }
+}
+
+?></ul>
 <div id="setup" data-base-target="layout">
   <div class="header">
     <?= $this->img('img/logo_icinga_big.png'); ?>



More information about the icinga-checkins mailing list