diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-11 00:19:07 -0800 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-03-11 07:47:00 -0500 |
commit | 2c1cb90384abe9532200c936c31c0efdcfe1f695 (patch) | |
tree | 28a3f7cbfd74994f5bd8ec4303918f871a0772fa /src/usr/local | |
parent | ae04affe85f9b2d0171d50c18c17cfad06941238 (diff) | |
download | pfsense-2c1cb90384abe9532200c936c31c0efdcfe1f695.zip pfsense-2c1cb90384abe9532200c936c31c0efdcfe1f695.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).
Diffstat (limited to 'src/usr/local')
-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 } ?> |