summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-17 16:38:25 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-17 16:38:25 +0545
commitd61309a07ce3fd295cb4f9903b4c62245facfdd4 (patch)
tree43696d918e15be1efa49baea8323866c2077dc30 /src/usr/local/www/system_routes.php
parent0cf1b4f4f29f2ad63691d598e83a9327ae9867ff (diff)
downloadpfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.zip
pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.tar.gz
Code style system_*
Diffstat (limited to 'src/usr/local/www/system_routes.php')
-rw-r--r--src/usr/local/www/system_routes.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/usr/local/www/system_routes.php b/src/usr/local/www/system_routes.php
index e56394f..0a75571 100644
--- a/src/usr/local/www/system_routes.php
+++ b/src/usr/local/www/system_routes.php
@@ -247,12 +247,15 @@ $shortcut_section = "routing";
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
-if ($savemsg)
+}
+if ($savemsg) {
print_info_box($savemsg);
-if (is_subsystem_dirty('staticroutes'))
+}
+if (is_subsystem_dirty('staticroutes')) {
print_info_box_np(gettext("The static route configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
+}
$tab_array = array();
$tab_array[0] = array(gettext("Gateways"), false, "system_gateways.php");
@@ -275,10 +278,11 @@ display_top_tabs($tab_array);
<tbody>
<?php
foreach ($a_routes as $i => $route):
- if (isset($route['disabled']))
+ if (isset($route['disabled'])) {
$icon = 'fa-ban';
- else
+ } else {
$icon = 'fa-check-circle-o';
+ }
?>
<tr<?=($icon != 'fa-check-circle-o')? ' class="disabled"' : ''?>>
<td><i class="fa <?=$icon?>"></i></td>
OpenPOWER on IntegriCloud