summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-12-15 08:00:20 -0200
committerRenato Botelho <renato@netgate.com>2015-12-15 08:00:20 -0200
commitf3daf791c7d1b8fdd11d3dfa25fb9bc4d944a425 (patch)
tree1ee9f1b040a5332759ade57a8ee553a8f9e6ff29 /src/usr/local/www
parent4aafe7c40e6119b585ae7dfb520cea92e3b1f9e4 (diff)
parent2d7d9ed173efb1978bacb6cbda98ef2e72d2e83b (diff)
downloadpfsense-f3daf791c7d1b8fdd11d3dfa25fb9bc4d944a425.zip
pfsense-f3daf791c7d1b8fdd11d3dfa25fb9bc4d944a425.tar.gz
Merge pull request #2229 from NOYB/Status_-_System_Logs_-_Firewall_-_Sort_Header
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/status_logs_filter.php30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php
index 3600e25..bb9920f 100644
--- a/src/usr/local/www/status_logs_filter.php
+++ b/src/usr/local/www/status_logs_filter.php
@@ -575,7 +575,7 @@ if (!$rawfilter) {
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
<thead>
- <tr>
+ <tr style="white-space:nowrap;">
<th><?=gettext("Act")?></th>
<th><?=gettext("Time")?></th>
<th><?=gettext("IF")?></th>
@@ -600,25 +600,31 @@ if (!$rawfilter) {
foreach ($filterlog as $filterent) {
?>
- <tr>
- <td style="white-space:nowrap;">
+ <tr style="white-space:nowrap;">
+ <td>
<?php
if ($filterent['act'] == "block") {
$icon_act = "fa-times text-danger";
} else {
$icon_act = "fa-check text-success";
}
+
+ if ($filterent['count']) {
+ $margin_left = '0em';
+ } else {
+ $margin_left = '0.4em';
+ }
?>
- <i class="fa <?php echo $icon_act;?> icon-pointer" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('status_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
+ <i style="margin-left:<?php echo $margin_left;?>" class="fa <?php echo $icon_act;?> icon-pointer" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('status_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
<?php
if ($filterent['count'])
echo $filterent['count'];
?>
</td>
- <td style="white-space:nowrap;">
+ <td>
<?=htmlspecialchars($filterent['time'])?>
</td>
- <td style="white-space:nowrap;">
+ <td>
<?php
if ($filterent['direction'] == "out")
print('&#x25ba;' . ' ');
@@ -628,7 +634,7 @@ if (!$rawfilter) {
<?php
if ($config['syslog']['filterdescriptions'] === "1") {
?>
- <td>
+ <td style="white-space:normal;">
<?=find_rule_by_number_buffer($filterent['rulenum'], $filterent['tracker'], $filterent['act'])?>
</td>
<?php
@@ -650,7 +656,7 @@ if (!$rawfilter) {
$dststr = $filterent['dstip'] . get_port_with_service($filterent['dstport'], $proto);
$dst_htmlclass = str_replace(array('.', ':'), '-', $filterent['dstip']);
?>
- <td style="white-space:nowrap;">
+ <td>
<i class="fa fa-info icon-pointer icon-primary" onclick="javascript:resolve_with_ajax('<?="{$filterent['srcip']}"; ?>');" title="<?=gettext("Click to resolve")?>" alt="Reverse Resolve with DNS"/>
</i>
@@ -659,7 +665,7 @@ if (!$rawfilter) {
<?=$srcstr . '<span class="RESOLVE-' . $src_htmlclass . '"></span>'?>
</td>
- <td style="white-space:nowrap;">
+ <td>
<i class="fa fa-info icon-pointer icon-primary" onclick="javascript:resolve_with_ajax('<?="{$filterent['dstip']}"; ?>');" title="<?=gettext("Click to resolve")?>" class="ICON-<?= $dst_htmlclass; ?>" alt="Reverse Resolve with DNS"/>
</i>
@@ -671,7 +677,7 @@ if (!$rawfilter) {
if ($filterent['proto'] == "TCP")
$filterent['proto'] .= ":{$filterent['tcpflags']}";
?>
- <td style="white-space:nowrap;">
+ <td>
<?=htmlspecialchars($filterent['proto'])?>
</td>
</tr>
@@ -705,9 +711,9 @@ else
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=gettext("Last ")?><?=$nentries?> <?=gettext($allowed_logs[$logfile]["name"])?><?=gettext(" log entries")?></h2></div>
<div class="table table-responsive">
- <table class="table table-striped table-hover">
+ <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
<thead>
- <tr>
+ <tr style="white-space:nowrap;">
<th><?=gettext("Time")?></th>
<th style="width:100%"><?=gettext("Message")?></th>
</tr>
OpenPOWER on IntegriCloud