summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJared Dillard <jdillard@netgate.com>2016-03-15 16:20:06 -0500
committerJared Dillard <jdillard@netgate.com>2016-03-15 16:20:12 -0500
commit6fefbd485808f89dc1443fd177f3f807bf859abb (patch)
tree2d3475f565d108edeaa46c4a945651bb2c9a2478 /src
parent4dbdb3583e09f3c9e75515cb8e45e2c53208c388 (diff)
downloadpfsense-6fefbd485808f89dc1443fd177f3f807bf859abb.zip
pfsense-6fefbd485808f89dc1443fd177f3f807bf859abb.tar.gz
Fixed #5953 Dashboard widget alignment issues
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/index.php8
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>";
+
}
?>
OpenPOWER on IntegriCloud