[icinga-checkins] icinga.org: icingaweb2/bugfix/ setup-wizard-progress-bar-is-not-shown-correctly-13735: Setup-Wizard-Viewscript: Fix that progress bar is not shown correctly

git at icinga.org git at icinga.org
Mon Jan 9 13:59:33 CET 2017


Module: icingaweb2
Branch: bugfix/setup-wizard-progress-bar-is-not-shown-correctly-13735
Commit: 32e7b31e03469e867e1a51a6bdb285847bb69300
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=32e7b31e03469e867e1a51a6bdb285847bb69300

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Mon Jan  9 13:57:41 2017 +0100

Setup-Wizard-Viewscript: Fix that progress bar is not shown correctly

refs #13735

---

 modules/setup/application/views/scripts/index/index.phtml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/setup/application/views/scripts/index/index.phtml b/modules/setup/application/views/scripts/index/index.phtml
index 1c4280c..6d90c2d 100644
--- a/modules/setup/application/views/scripts/index/index.phtml
+++ b/modules/setup/application/views/scripts/index/index.phtml
@@ -4,7 +4,7 @@ use Icinga\Web\Notification;
 
 $pages = $wizard->getPages();
 $finished = isset($success);
-$configPages = array_slice($pages, 3, count($pages) - 1, true);
+$configPages = array_slice($pages, 3, count($pages) - 4, true);
 $currentPos = array_search($wizard->getCurrentPage(), $pages, true);
 list($configPagesLeft, $configPagesRight) = array_chunk($configPages, count($configPages) / 2, true);
 
@@ -134,7 +134,7 @@ if ($notifications->hasMessages()) {
       </div>
       <div class="step" style="width: 10%;">
         <h1><?= $this->translate('Finish', 'setup.progress'); ?></h1>
-        <?php $stateClass = $finished ? ' active' : ''; ?>
+        <?php $stateClass = $finished ? ' complete' : ($pages[$currentPos] === end($pages) ? ' active' : ''); ?>
         <table><tbody><tr>
           <td class="left"><div class="line left<?= $stateClass; ?>"></div></td>
           <td class="middle"><div class="bubble<?= $stateClass; ?>"></div></td>



More information about the icinga-checkins mailing list