35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
<table class="table table-striped table-dark">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 200px">Created At</th>
|
|
<th>Code</th>
|
|
<th style="width: 100px">Commit</th>
|
|
<th>Controller/Action</th>
|
|
<th>Message</th>
|
|
<th>Stacktrace</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @exceptions.each do |exception| %>
|
|
<tr>
|
|
<td><%= compact_time(exception.created_at) %></td>
|
|
<td><%= exception.code %></td>
|
|
<td><%= exception.version.present? ? link_to(exception.version, GitHelper.commit_url(exception.version)) : "Unknown" %></td>
|
|
<td><%= exception.extra_params.dig("params", "controller") %>/<%= exception.extra_params.dig("params", "action") %></td>
|
|
<td><%= truncate(exception.message, length: 50) %></td>
|
|
<td><%= link_to("View", admin_exception_path(exception)) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
|
|
<footer class="bg-dark pt-3 fixed-bottom">
|
|
<div class=" d-flex align-items-center justify-content-center">
|
|
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
|
|
</div>
|
|
</footer>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Exceptions
|
|
<% end %>
|