<% content_for :head do %> <% end %>

HTTP Log Entries

<%= link_to stats_log_entries_path(seconds: 60), class: "inline-flex items-center gap-1 text-blue-600 hover:text-blue-800" do %> <%= render partial: "shared/icons/chart_bars", locals: { class_name: "w-5 h-5" } %> View Statistics <% end %> <% if @uri_filter %> | <%= link_to "Back to All Entries", log_entries_path, class: "text-blue-600 hover:text-blue-800" %> <% end %>
<% if @uri_filter %>
Currently filtering: <%= @uri_filter %>
<% end %>
<%= render partial: "shared/pagination_controls", locals: { collection: @log_entries } %>
ID
Size
Time
Status
URI
Type
Resp
<% @log_entries.each do |hle| %>
<%= link_to hle.id, log_entry_path(hle.id), class: "text-blue-600 hover:text-blue-800 font-medium" %>
<%= HexUtil.humansize(hle.response_size) %>
<%= time_ago_in_words(hle.created_at, include_seconds: true) %> ago
<%= hle.status_code %>
<% iterative_parts = path_iterative_parts(hle.uri_path) %>
<%= hle.uri_scheme %>://<%= hle.uri_host %> <%- iterative_parts.each_with_index do |(part, up_to), index| -%> <% uri_and_up_to = hle.uri_host + up_to %> " >/<%= part %> <%- end -%> <%- if hle.uri_query -%> <% query_parsed = URI.decode_www_form(hle.uri_query).to_h %> ?<%= hle.uri_query %> <%- end -%>
<%= link_to hle.uri.to_s, class: "text-blue-600 hover:text-blue-800 transition-colors", target: "_blank", rel: "noreferrer" do %> <%= render partial: "shared/icons/external_link", locals: { class_name: "w-4 h-4" } %> <% end %>
<%= hle.content_type %>
<%= hle.response_time_ms %>ms
<% end %>