Updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% content_for :title, "Event #{@event.event_id} - Baffle Hub" %>
|
||||
<% content_for :title, "Event #{@event.request_id} - Baffle Hub" %>
|
||||
|
||||
<div class="mx-auto max-w-7xl px-4 py-6 sm:px-6 lg:px-8" data-controller="timeline" data-timeline-mode-value="events">
|
||||
<!-- Header -->
|
||||
@@ -15,7 +15,7 @@
|
||||
<svg class="flex-shrink-0 h-5 w-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
<span class="ml-4 text-gray-700 font-medium"><%= @event.event_id %></span>
|
||||
<span class="ml-4 text-gray-700 font-medium"><%= @event.request_id %></span>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
@@ -48,8 +48,8 @@
|
||||
<div class="px-6 py-4">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
<div>
|
||||
<dt class="text-sm font-medium text-gray-500">Event ID</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 font-mono break-all"><%= @event.event_id %></dd>
|
||||
<dt class="text-sm font-medium text-gray-500">Request ID</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 font-mono break-all"><%= @event.request_id %></dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-sm font-medium text-gray-500">Timestamp</dt>
|
||||
@@ -77,10 +77,17 @@
|
||||
</span>
|
||||
</dd>
|
||||
</div>
|
||||
<% if @event.rule_matched.present? %>
|
||||
<% if @event.rule.present? %>
|
||||
<div>
|
||||
<dt class="text-sm font-medium text-gray-500">Rule Matched</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900"><%= @event.rule_matched %></dd>
|
||||
<dd class="mt-1 text-sm text-gray-900">
|
||||
<%= link_to "Rule ##{@event.rule.id}", @event.rule, class: "text-blue-600 hover:text-blue-800" %>
|
||||
<span class="text-gray-500">(<%= @event.rule.waf_rule_type %>)</span>
|
||||
<% if @event.waf_policy.present? %>
|
||||
<br>
|
||||
<span class="text-xs text-gray-500">Policy: <%= link_to @event.waf_policy.name, @event.waf_policy, class: "text-blue-600 hover:text-blue-800" %></span>
|
||||
<% end %>
|
||||
</dd>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if @event.blocked_reason.present? %>
|
||||
|
||||
Reference in New Issue
Block a user