diff options
author | Jared Dillard <jdillard@netgate.com> | 2016-03-15 16:20:06 -0500 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2016-03-15 16:20:12 -0500 |
commit | 6fefbd485808f89dc1443fd177f3f807bf859abb (patch) | |
tree | 2d3475f565d108edeaa46c4a945651bb2c9a2478 /src/usr | |
parent | 4dbdb3583e09f3c9e75515cb8e45e2c53208c388 (diff) | |
download | pfsense-6fefbd485808f89dc1443fd177f3f807bf859abb.zip pfsense-6fefbd485808f89dc1443fd177f3f807bf859abb.tar.gz |
Fixed #5953 Dashboard widget alignment issues
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/index.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index e534ac2..2781449 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -389,10 +389,11 @@ foreach ($widgets as $widgetname => $widgetconfig) { $columnWidth = 12 / $numColumns; for ($currentColumnNumber = 1; $currentColumnNumber <= $numColumns; $currentColumnNumber++) { - echo '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '">'; + //if col$currentColumnNumber exists if (isset($widgetColumns['col'.$currentColumnNumber])) { + echo '<div class="test col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '">'; $columnWidgets = $widgetColumns['col'.$currentColumnNumber]; foreach ($columnWidgets as $widgetname => $widgetconfig) { @@ -429,10 +430,11 @@ foreach ($widgets as $widgetname => $widgetconfig) { </div> <?php } + echo "</div>"; } else { - echo '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '"></div>'; + echo '<div class="test2 col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '"></div>'; } - echo "</div>"; + } ?> |