faultline-rails 0.4.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/app/assets/stylesheets/faultline/application.css +0 -41
- data/app/assets/stylesheets/faultline/dashboard.css +961 -0
- data/app/controllers/faultline/logged_exceptions_controller.rb +81 -8
- data/app/helpers/faultline/logged_exceptions_helper.rb +84 -5
- data/app/javascript/controllers/faultline_controller.js +349 -7
- data/app/javascript/faultline/controllers/sidebar_controller.js +21 -0
- data/app/javascript/faultline/controllers/theme_controller.js +48 -0
- data/app/models/faultline/logged_exception.rb +10 -0
- data/app/views/faultline/logged_exceptions/_exceptions.html.erb +132 -84
- data/app/views/faultline/logged_exceptions/_show.html.erb +281 -60
- data/app/views/faultline/logged_exceptions/index.html.erb +192 -123
- data/app/views/faultline/logged_exceptions/show.html.erb +1 -1
- data/app/views/layouts/faultline/application.html.erb +116 -51
- data/faultline-rails.gemspec +1 -0
- data/lib/faultline/cleanup.rb +32 -0
- data/lib/faultline/configuration.rb +172 -4
- data/lib/faultline/engine.rb +22 -0
- data/lib/faultline/logger.rb +188 -0
- data/lib/faultline/notifications.rb +80 -0
- data/lib/faultline/ransack_config.rb +2 -24
- data/lib/faultline/version.rb +1 -1
- data/lib/faultline.rb +10 -0
- data/lib/generators/faultline/customize_generator.rb +117 -0
- data/lib/generators/faultline/install_generator.rb +15 -0
- data/lib/generators/faultline/templates/faultline.rb +70 -37
- data/lib/generators/faultline/templates/javascript/controllers/faultline_controller.js +310 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/_exceptions.html.erb +124 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/_show.html.erb +83 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/index.html.erb +113 -0
- data/lib/generators/faultline/templates/views/layouts/faultline/application.html.erb +133 -0
- data/lib/tasks/faultline.rake +147 -0
- metadata +15 -1
|
@@ -1,76 +1,297 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<span class="
|
|
1
|
+
<div class="fl-detail-panel" style="border-left: none; border-radius: var(--fl-radius-lg); overflow: hidden">
|
|
2
|
+
|
|
3
|
+
<%# ─── Detail Header ───────────────────────────────────────── %>
|
|
4
|
+
<div class="fl-detail-header">
|
|
5
|
+
<div class="min-w-0 flex-1">
|
|
6
|
+
<%# Breadcrumbs %>
|
|
7
|
+
<nav class="fl-breadcrumbs" style="padding: 0; margin-bottom: 0.5rem">
|
|
8
|
+
<a href="<%= logged_exceptions_path %>" class="fl-breadcrumb">Exceptions</a>
|
|
9
|
+
<span class="fl-breadcrumb-sep">/</span>
|
|
10
|
+
<span class="fl-breadcrumb-current"><%= @exception.exception_class %></span>
|
|
11
|
+
</nav>
|
|
12
|
+
|
|
13
|
+
<div class="flex items-center gap-2 flex-wrap">
|
|
14
|
+
<span class="fl-badge fl-badge-<%= severity_for(@exception) %>"><%= @exception.exception_class %></span>
|
|
15
|
+
<span class="fl-mono text-xs" style="color: var(--fl-text-secondary)"><%= @exception.controller_name %>#<%= @exception.action_name %></span>
|
|
15
16
|
</div>
|
|
17
|
+
|
|
18
|
+
<p class="mt-1.5 text-xs" style="color: var(--fl-text-muted)">
|
|
19
|
+
<time datetime="<%= @exception.created_at.iso8601 %>"><%= @exception.created_at.strftime("%B %d, %Y at %I:%M:%S %p") %></time>
|
|
20
|
+
<% if @exception.remote_ip.present? %>
|
|
21
|
+
<span style="color: var(--fl-border)">·</span>
|
|
22
|
+
<span class="fl-mono"><%= @exception.remote_ip %></span>
|
|
23
|
+
<% end %>
|
|
24
|
+
</p>
|
|
16
25
|
</div>
|
|
17
|
-
<button type="button"
|
|
18
|
-
class="inline-flex items-center p-2 border border-transparent rounded-full shadow-sm text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
19
|
-
data-action="click->faultline#closeDetails">
|
|
20
|
-
<svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
|
21
|
-
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" />
|
|
22
|
-
</svg>
|
|
23
|
-
</button>
|
|
24
|
-
</div>
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
<div class="flex items-center gap-2 shrink-0">
|
|
28
|
+
<%# Copy exception ID %>
|
|
29
|
+
<button type="button"
|
|
30
|
+
class="fl-copy-btn"
|
|
31
|
+
data-action="click->faultline#copyId"
|
|
32
|
+
data-faultline-id-value="<%= @exception.id %>"
|
|
33
|
+
title="Copy exception ID">
|
|
34
|
+
<svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9.75a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184" /></svg>
|
|
35
|
+
<span>ID</span>
|
|
36
|
+
</button>
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
<%# Copy message %>
|
|
39
|
+
<button type="button"
|
|
40
|
+
class="fl-copy-btn"
|
|
41
|
+
data-action="click->faultline#copyMessage"
|
|
42
|
+
data-faultline-message-value="<%= @exception.message %>"
|
|
43
|
+
title="Copy message">
|
|
44
|
+
<svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>
|
|
45
|
+
<span>Message</span>
|
|
46
|
+
</button>
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
<%# Close %>
|
|
49
|
+
<button type="button"
|
|
50
|
+
class="fl-icon-btn shrink-0"
|
|
51
|
+
data-action="click->faultline#closeDetails"
|
|
52
|
+
title="Close (Esc)">
|
|
53
|
+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>
|
|
54
|
+
</button>
|
|
45
55
|
</div>
|
|
46
56
|
</div>
|
|
47
57
|
|
|
48
|
-
<%#
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
<%# ─── Tabs ─────────────────────────────────────────────────── %>
|
|
59
|
+
<% if @exception_tabs && @exception_tabs.values.count(true) > 1 %>
|
|
60
|
+
<div class="fl-tabs" data-faultline-target="tabs">
|
|
61
|
+
<button type="button" class="fl-tab active" data-action="click->faultline#switchTab" data-fl-tab-param="overview">Overview</button>
|
|
62
|
+
<% if @exception_tabs[:backtrace] %>
|
|
63
|
+
<button type="button" class="fl-tab" data-action="click->faultline#switchTab" data-fl-tab-param="backtrace">
|
|
64
|
+
Backtrace
|
|
65
|
+
<span class="fl-tab-badge"><%= @exception.backtrace.to_s.split("\n").length %></span>
|
|
66
|
+
</button>
|
|
67
|
+
<% end %>
|
|
68
|
+
<% if @exception_tabs[:request] %>
|
|
69
|
+
<button type="button" class="fl-tab" data-action="click->faultline#switchTab" data-fl-tab-param="request">Request</button>
|
|
70
|
+
<% end %>
|
|
71
|
+
<% if @exception_tabs[:environment] %>
|
|
72
|
+
<button type="button" class="fl-tab" data-action="click->faultline#switchTab" data-fl-tab-param="environment">Environment</button>
|
|
73
|
+
<% end %>
|
|
74
|
+
<% if @exception_tabs[:user_info] %>
|
|
75
|
+
<button type="button" class="fl-tab" data-action="click->faultline#switchTab" data-fl-tab-param="user_info">User Info</button>
|
|
76
|
+
<% end %>
|
|
53
77
|
</div>
|
|
54
|
-
|
|
78
|
+
<% end %>
|
|
79
|
+
|
|
80
|
+
<%# ─── Detail Body ─────────────────────────────────────────── %>
|
|
81
|
+
<div class="fl-detail-body">
|
|
55
82
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<div class="
|
|
61
|
-
<
|
|
83
|
+
<%# ─── Tab: Overview ────────────────────────────────────── %>
|
|
84
|
+
<div data-faultline-target="tabContent" data-fl-tab-content="overview">
|
|
85
|
+
|
|
86
|
+
<%# Message %>
|
|
87
|
+
<div class="fl-detail-section">
|
|
88
|
+
<div class="fl-detail-section-header">
|
|
89
|
+
<h3>Message</h3>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="fl-detail-code"><%= @exception.message %></div>
|
|
62
92
|
</div>
|
|
93
|
+
|
|
94
|
+
<%# Metadata Grid %>
|
|
95
|
+
<% if Faultline.configuration.show_metadata %>
|
|
96
|
+
<div class="fl-detail-section">
|
|
97
|
+
<h3 style="margin-bottom: 0.5rem">Details</h3>
|
|
98
|
+
<div class="fl-meta">
|
|
99
|
+
<div class="fl-meta-item">
|
|
100
|
+
<div class="fl-meta-label">Exception</div>
|
|
101
|
+
<div class="fl-meta-value"><%= @exception.exception_class %></div>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="fl-meta-item">
|
|
104
|
+
<div class="fl-meta-label">Controller</div>
|
|
105
|
+
<div class="fl-meta-value mono"><%= @exception.controller_name %></div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="fl-meta-item">
|
|
108
|
+
<div class="fl-meta-label">Action</div>
|
|
109
|
+
<div class="fl-meta-value mono"><%= @exception.action_name %></div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="fl-meta-item">
|
|
112
|
+
<div class="fl-meta-label">Time</div>
|
|
113
|
+
<div class="fl-meta-value"><time datetime="<%= @exception.created_at.iso8601 %>"><%= @exception.created_at.strftime("%Y-%m-%d %H:%M:%S %Z") %></time></div>
|
|
114
|
+
</div>
|
|
115
|
+
<% if @exception.remote_ip.present? %>
|
|
116
|
+
<div class="fl-meta-item">
|
|
117
|
+
<div class="fl-meta-label">IP Address</div>
|
|
118
|
+
<div class="fl-meta-value mono"><%= @exception.remote_ip %></div>
|
|
119
|
+
</div>
|
|
120
|
+
<% end %>
|
|
121
|
+
<% if @exception.user_agent.present? %>
|
|
122
|
+
<div class="fl-meta-item" style="grid-column: span 2">
|
|
123
|
+
<div class="fl-meta-label">User Agent</div>
|
|
124
|
+
<div class="fl-meta-value" style="font-size: 0.8125rem; word-break: break-all"><%= @exception.user_agent %></div>
|
|
125
|
+
</div>
|
|
126
|
+
<% end %>
|
|
127
|
+
<div class="fl-meta-item">
|
|
128
|
+
<div class="fl-meta-label">Exception ID</div>
|
|
129
|
+
<div class="fl-meta-value mono"><%= @exception.id %></div>
|
|
130
|
+
</div>
|
|
131
|
+
<% if @exception.id_value.present? %>
|
|
132
|
+
<div class="fl-meta-item">
|
|
133
|
+
<div class="fl-meta-label">ID Value</div>
|
|
134
|
+
<div class="fl-meta-value mono"><%= @exception.id_value %></div>
|
|
135
|
+
</div>
|
|
136
|
+
<% end %>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<% end %>
|
|
140
|
+
|
|
141
|
+
<%# Request Params %>
|
|
142
|
+
<% if Faultline.configuration.show_request && @exception.request.present? %>
|
|
143
|
+
<div class="fl-detail-section">
|
|
144
|
+
<div class="fl-detail-section-header">
|
|
145
|
+
<h3>Request</h3>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="fl-detail-code"><%= pretty_format(@exception.request) %></div>
|
|
148
|
+
</div>
|
|
149
|
+
<% end %>
|
|
150
|
+
|
|
151
|
+
<%# User Info %>
|
|
152
|
+
<% if @exception.user_info.present? %>
|
|
153
|
+
<div class="fl-detail-section">
|
|
154
|
+
<div class="fl-detail-section-header">
|
|
155
|
+
<h3>User Info</h3>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="fl-detail-code"><%= pretty_format(@exception.user_info) %></div>
|
|
158
|
+
</div>
|
|
159
|
+
<% end %>
|
|
63
160
|
</div>
|
|
64
|
-
<% end %>
|
|
65
161
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
162
|
+
<%# ─── Tab: Backtrace ────────────────────────────────────── %>
|
|
163
|
+
<div data-faultline-target="tabContent" data-fl-tab-content="backtrace" style="display: none">
|
|
164
|
+
<% if @exception.backtrace.present? %>
|
|
165
|
+
<% bt = format_backtrace(@exception.backtrace) %>
|
|
166
|
+
<div class="fl-detail-section">
|
|
167
|
+
<div class="fl-detail-section-header">
|
|
168
|
+
<h3>Stack Trace</h3>
|
|
169
|
+
<div class="flex items-center gap-2">
|
|
170
|
+
<button type="button" class="fl-copy-btn" data-action="click->faultline#copyBacktrace"
|
|
171
|
+
data-faultline-backtrace-value="<%= @exception.backtrace %>">
|
|
172
|
+
<svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9.75a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184" /></svg>
|
|
173
|
+
Copy
|
|
174
|
+
</button>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="fl-detail-pre" data-faultline-target="backtraceContent">
|
|
178
|
+
<%= bt[:visible] %>
|
|
179
|
+
</div>
|
|
180
|
+
<% if bt[:hidden_count] > 0 %>
|
|
181
|
+
<button type="button" class="fl-btn fl-btn-ghost fl-btn-sm mt-2"
|
|
182
|
+
data-action="click->faultline#expandBacktrace">
|
|
183
|
+
Show <%= bt[:hidden_count] %> more frames
|
|
184
|
+
</button>
|
|
185
|
+
<div class="fl-detail-pre mt-2" style="display: none" data-faultline-target="backtraceHidden">
|
|
186
|
+
<%= bt[:hidden] %>
|
|
187
|
+
</div>
|
|
188
|
+
<% end %>
|
|
189
|
+
</div>
|
|
190
|
+
<% else %>
|
|
191
|
+
<div class="text-center py-8">
|
|
192
|
+
<p class="text-sm" style="color: var(--fl-text-muted)">No backtrace available</p>
|
|
193
|
+
</div>
|
|
194
|
+
<% end %>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<%# ─── Tab: Request ──────────────────────────────────────── %>
|
|
198
|
+
<div data-faultline-target="tabContent" data-fl-tab-content="request" style="display: none">
|
|
199
|
+
<% if @exception.request.present? %>
|
|
200
|
+
<div class="fl-detail-section">
|
|
201
|
+
<div class="fl-detail-section-header">
|
|
202
|
+
<h3>Request Data</h3>
|
|
203
|
+
</div>
|
|
204
|
+
<div class="fl-detail-code" style="max-height: 32rem; overflow: auto"><%= pretty_format(@exception.request) %></div>
|
|
205
|
+
</div>
|
|
206
|
+
<% else %>
|
|
207
|
+
<div class="text-center py-8">
|
|
208
|
+
<p class="text-sm" style="color: var(--fl-text-muted)">No request data available</p>
|
|
209
|
+
</div>
|
|
210
|
+
<% end %>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<%# ─── Tab: Environment ──────────────────────────────────── %>
|
|
214
|
+
<div data-faultline-target="tabContent" data-fl-tab-content="environment" style="display: none">
|
|
215
|
+
<% if @exception.environment.present? %>
|
|
216
|
+
<div class="fl-detail-section">
|
|
217
|
+
<div class="fl-detail-section-header">
|
|
218
|
+
<h3>Environment Variables</h3>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="fl-detail-code" style="max-height: 32rem; overflow: auto"><%= pretty_format(@exception.environment) %></div>
|
|
221
|
+
</div>
|
|
222
|
+
<% else %>
|
|
223
|
+
<div class="text-center py-8">
|
|
224
|
+
<p class="text-sm" style="color: var(--fl-text-muted)">No environment data available</p>
|
|
225
|
+
</div>
|
|
226
|
+
<% end %>
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
<%# ─── Tab: User Info ────────────────────────────────────── %>
|
|
230
|
+
<div data-faultline-target="tabContent" data-fl-tab-content="user_info" style="display: none">
|
|
231
|
+
<% if @exception.user_info.present? %>
|
|
232
|
+
<div class="fl-detail-section">
|
|
233
|
+
<div class="fl-detail-section-header">
|
|
234
|
+
<h3>User Information</h3>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="fl-detail-code"><%= pretty_format(@exception.user_info) %></div>
|
|
237
|
+
</div>
|
|
238
|
+
<% else %>
|
|
239
|
+
<div class="text-center py-8">
|
|
240
|
+
<p class="text-sm" style="color: var(--fl-text-muted)">No user info available</p>
|
|
241
|
+
</div>
|
|
242
|
+
<% end %>
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<%# ─── Actions Footer ──────────────────────────────────────── %>
|
|
248
|
+
<div class="flex items-center justify-between px-5 py-3" style="border-top: 1px solid var(--fl-border-light); background: var(--fl-bg-secondary)">
|
|
249
|
+
<p class="text-xs fl-mono" style="color: var(--fl-text-muted)">
|
|
250
|
+
ID: <%= @exception.id %>
|
|
251
|
+
<span style="color: var(--fl-border)">·</span>
|
|
252
|
+
<time datetime="<%= @exception.created_at.iso8601 %>"><%= @exception.created_at.iso8601 %></time>
|
|
71
253
|
</p>
|
|
72
|
-
<%= link_to
|
|
73
|
-
class: "
|
|
74
|
-
|
|
254
|
+
<%= link_to logged_exception_path(@exception),
|
|
255
|
+
class: "fl-btn fl-btn-ghost fl-btn-sm",
|
|
256
|
+
style: "color: var(--fl-danger); border-color: var(--fl-danger)",
|
|
257
|
+
data: { turbo_method: :delete, turbo_confirm: t(".confirm_delete"), turbo_stream: true } do %>
|
|
258
|
+
<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>
|
|
259
|
+
Delete
|
|
260
|
+
<% end %>
|
|
75
261
|
</div>
|
|
262
|
+
|
|
263
|
+
<%# ─── Prev/Next Navigation ────────────────────────────────── %>
|
|
264
|
+
<% if Faultline.configuration.enable_navigation && (prev_exception || next_exception) %>
|
|
265
|
+
<div class="fl-nav-row">
|
|
266
|
+
<% if prev_exception %>
|
|
267
|
+
<%= link_to logged_exception_path(prev_exception, params_filters),
|
|
268
|
+
class: "fl-nav-link",
|
|
269
|
+
data: { turbo_frame: "exception-details", turbo_action: "advance" } do %>
|
|
270
|
+
<svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5L8.25 12l7.5-7.5" /></svg>
|
|
271
|
+
<div class="min-w-0">
|
|
272
|
+
<div class="fl-nav-link-label">Previous</div>
|
|
273
|
+
<div class="fl-nav-link-title"><%= prev_exception.id %></div>
|
|
274
|
+
</div>
|
|
275
|
+
<% end %>
|
|
276
|
+
<% else %>
|
|
277
|
+
<div></div>
|
|
278
|
+
<% end %>
|
|
279
|
+
|
|
280
|
+
<% if next_exception %>
|
|
281
|
+
<%= link_to logged_exception_path(next_exception, params_filters),
|
|
282
|
+
class: "fl-nav-link",
|
|
283
|
+
style: "text-align: right",
|
|
284
|
+
data: { turbo_frame: "exception-details", turbo_action: "advance" } do %>
|
|
285
|
+
<div class="min-w-0">
|
|
286
|
+
<div class="fl-nav-link-label">Next</div>
|
|
287
|
+
<div class="fl-nav-link-title"><%= next_exception.id %></div>
|
|
288
|
+
</div>
|
|
289
|
+
<svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" /></svg>
|
|
290
|
+
<% end %>
|
|
291
|
+
<% else %>
|
|
292
|
+
<div></div>
|
|
293
|
+
<% end %>
|
|
294
|
+
</div>
|
|
295
|
+
<% end %>
|
|
296
|
+
|
|
76
297
|
</div>
|