Websites/app/views/admin/exceptions/index.html.erb

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-06-11 07:15:05 +00:00
<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>
2024-08-06 10:57:00 +00:00
<td><%= link_to("View", admin_exception_path(exception)) %></td>
2024-06-11 07:15:05 +00:00
</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>
2024-08-06 10:28:38 +00:00
<% content_for(:page_title) do %>
Exceptions
<% end %>