diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-04-24 00:07:20 -0700 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-25 08:56:35 -0400 |
commit | d8257e0e33332d69cdff77cfde991481a07b1778 (patch) | |
tree | a012c3babe0c5c985ae549153826e8d8c1bad95e /src/usr/local/www/status_ipsec.php | |
parent | 01adf00112ac67607c4c909d9f04aa446b892ec3 (diff) | |
download | pfsense-d8257e0e33332d69cdff77cfde991481a07b1778.zip pfsense-d8257e0e33332d69cdff77cfde991481a07b1778.tar.gz |
Status / IPsec / Overview - Few_Fixes
1) If there is no IPsec status response display an info box wrapped in table tags to prevent horizontal scroll bar.
2) Correct colspan to match header columns.
3) Punctuation.
(cherry picked from commit fc48da171336985cd63beccf0110051dfbe92a47)
Diffstat (limited to 'src/usr/local/www/status_ipsec.php')
-rw-r--r-- | src/usr/local/www/status_ipsec.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/local/www/status_ipsec.php b/src/usr/local/www/status_ipsec.php index 4ca13d7..4968d31 100644 --- a/src/usr/local/www/status_ipsec.php +++ b/src/usr/local/www/status_ipsec.php @@ -520,8 +520,8 @@ display_top_tabs($tab_array); </thead> <tbody id="ipsec-body"> <tr> - <td colspan="9"> - <?=print_info_box(gettext("Collecting IPsec status information"), warning, "")?> + <td colspan="10"> + <?=print_info_box(gettext("Collecting IPsec status information."), warning, "")?> </td> </tr> </tbody> @@ -569,6 +569,11 @@ events.push(function() { // Deal with the results of the above ajax call ajaxRequest.done(function (response, textStatus, jqXHR) { + + if (!response) { + response = '<tr><td colspan="10"><?=print_info_box(gettext("No IPsec status information available."), warning, "")?></td></tr>'; + } + $('#ipsec-body').html(response); ajax_lock = false; |