Add DeviceDetector and postres_cursor
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<dl>
|
||||
<dt class="text-sm font-medium text-gray-500 truncate">Deny Policies</dt>
|
||||
<dd class="text-lg font-medium text-gray-900">
|
||||
<%= number_with_delimiter(@waf_policies.where(action: 'deny').count) %>
|
||||
<%= number_with_delimiter(@waf_policies.where(policy_action: 'deny').count) %>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
@@ -137,15 +137,15 @@
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<!-- Action Badge -->
|
||||
<!-- Policy Action Badge -->
|
||||
<span class="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium
|
||||
<%= case policy.action
|
||||
<%= case policy.policy_action
|
||||
when 'deny' then 'bg-red-100 text-red-800'
|
||||
when 'allow' then 'bg-green-100 text-green-800'
|
||||
when 'redirect' then 'bg-yellow-100 text-yellow-800'
|
||||
when 'challenge' then 'bg-purple-100 text-purple-800'
|
||||
end %>">
|
||||
<%= policy.action.upcase %>
|
||||
<%= policy.policy_action.upcase %>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-1 text-sm text-gray-500">
|
||||
|
||||
Reference in New Issue
Block a user