diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-11 00:19:07 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-03-11 00:19:07 -0800 |
commit | 51aaf4a2190dd53e6fdfa052dc85dc60680e47d3 (patch) | |
tree | e09390f3664316f50fa14e6b228c3b21d5042a4b | |
parent | ccdb9c3bf9707b0ec8054bddfb81f2800772fd54 (diff) | |
download | pfsense-51aaf4a2190dd53e6fdfa052dc85dc60680e47d3.zip pfsense-51aaf4a2190dd53e6fdfa052dc85dc60680e47d3.tar.gz |
HTML Compliance - CARP Status Widget
Error: th start tag in table body.
Warning: A table row was 1 columns wide, which is less than the column count established by the first row (3).
-rw-r--r-- | src/usr/local/www/widgets/widgets/carp_status.widget.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/usr/local/www/widgets/widgets/carp_status.widget.php b/src/usr/local/www/widgets/widgets/carp_status.widget.php index 8dd59fe..dc7a531 100644 --- a/src/usr/local/www/widgets/widgets/carp_status.widget.php +++ b/src/usr/local/www/widgets/widgets/carp_status.widget.php @@ -67,9 +67,11 @@ $carp_enabled = get_carp_status(); <div class="content"> <table class="table table-striped table-hover"> <thead> - <th>CARP Interface</th> - <th>IP Address</th> - <th>Status</th> + <tr> + <th>CARP Interface</th> + <th>IP Address</th> + <th>Status</th> + </tr> </thead> <tbody> <?php @@ -109,6 +111,10 @@ $carp_enabled = get_carp_status(); <td><?=htmlspecialchars($ipaddress);?></td> <td><i class="fa fa-<?=$icon?>"></i> <?= htmlspecialchars($status) ?></td> <?php + } else { +?> + <td colspan="2"> +<?php } ?> </tr> @@ -116,7 +122,7 @@ $carp_enabled = get_carp_status(); } } else { ?> - <tr><td><?=gettext('No CARP Interfaces Defined.')?> <?=sprintf(gettext('Click %1$shere%2$s to configure CARP.'), '<a href="status_carp.php">', '</a>')?></td></tr> + <tr><td colspan="3"><?=gettext('No CARP Interfaces Defined.')?> <?=sprintf(gettext('Click %1$shere%2$s to configure CARP.'), '<a href="status_carp.php">', '</a>')?></td></tr> <?php } ?> |