mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #2013 from heper/patch-1
This commit is contained in:
commit
c19db1d15d
@ -298,3 +298,13 @@ form .btn + .btn {
|
||||
.panel-body.collapse.in {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/** create icon colors */
|
||||
.icon-danger
|
||||
{
|
||||
color: #D9534F;
|
||||
}
|
||||
.icon-success
|
||||
{
|
||||
color: #5CB85C;
|
||||
}
|
||||
|
||||
@ -391,8 +391,18 @@ if (!isset($config['syslog']['rawfilter'])) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a data-toggle="tooltip" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" class="btn btn-xs btn-info" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);">
|
||||
<?=gettext('Block')?></a>
|
||||
<?php
|
||||
if ($filterent['act'] == "block") {
|
||||
?>
|
||||
<i class="fa fa-times icon-danger" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<i class="fa fa-check icon-success" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if ($filterent['count'])
|
||||
echo $filterent['count'];
|
||||
|
||||
@ -220,9 +220,19 @@ display_top_tabs($tab_array, false, 'nav nav-tabs');
|
||||
?>
|
||||
<td><?=htmlspecialchars($filterent['proto'])?></td>
|
||||
<td>
|
||||
<a href="#" class="btn btn-danger btn-xs" alt="<?=$filterent['act'];?>" title="<?=$filterent['act'];?> onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['act']}"; ?>', outputrule);">
|
||||
<?=gettext('Block')?>
|
||||
</a>
|
||||
<?php
|
||||
if ($filterent['act'] == "block") {
|
||||
?>
|
||||
<i class="fa fa-times icon-danger" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<i class="fa fa-check icon-success" title="<?php echo $filterent['act'] .'/'. $filterent['tracker'];?>" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?="{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}"; ?>', outputrule);"></i>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
@ -240,4 +250,4 @@ if ($tcpcnt > 0)
|
||||
gettext("TCP Flags") . '</a>: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, C - CWR');
|
||||
?>
|
||||
|
||||
<?php include("foot.inc");
|
||||
<?php include("foot.inc");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user