mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 19:55:10 +00:00
36 lines
903 B
Text
36 lines
903 B
Text
<% admin_tool do %>
|
|
<details>
|
|
<summary>
|
|
Inspect "<%= record.class.name.underscore %>" record
|
|
</summary>
|
|
|
|
<% unless record.nil? %>
|
|
<% if record.is_a?(Norairrecord::Table) %>
|
|
<%== sanitize(ap(record.fields), tags: %w[kbd span b i em strong code], attributes: %w[class style]) %>
|
|
<% else %>
|
|
<%== sanitize(ap(record), tags: %w[kbd span b i em strong code], attributes: %w[class style]) %>
|
|
<% end %>
|
|
<div class="border-left ml1">
|
|
|
|
<!-- JSON -->
|
|
<details class="ml2">
|
|
<summary>
|
|
View JSON
|
|
</summary>
|
|
<div class="overflow-x-auto">
|
|
<pre class="w-max">
|
|
<%= JSON.pretty_generate(record.as_json) %>
|
|
</pre>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<p>
|
|
<code>nil</code> (does not exist)
|
|
</p>
|
|
|
|
<% end %>
|
|
</details>
|
|
<% end %>
|