Skip to content

Commit 53fbb8f

Browse files
committed
Display individual content
1 parent 110a1b7 commit 53fbb8f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<div class="flex justify-between">
2+
<h1 class="text-2xl font-bold mb-4"><%= t(".content") %></h1>
3+
<%= link_to t(".destroy"), content_path(@content), data: {turbo_method: :delete}, class: "font-bold text-sm hover:underline hover:text-red-400" %>
4+
</div>
5+
6+
<p>
7+
<b><%= Content.human_attribute_name(:uri) %></b>
8+
<%= @content.uri %>
9+
</p>
10+
<p>
11+
<b><%= Content.human_attribute_name(:object_type) %></b>
12+
<%= @content.object_type %>
13+
</p>
14+
<p>
15+
<b><%= Content.human_attribute_name(:created_at) %></b>
16+
<%= @content.created_at %>
17+
</p>
18+
<p>
19+
<b><%= Content.human_attribute_name(:updated_at) %></b>
20+
<%= @content.updated_at %>
21+
</p>
22+
23+
<p>
24+
<b><%= Content.human_attribute_name(:full_object) %></b>
25+
</p>
26+
27+
<pre class="rounded bg-gray-100 p-2">
28+
<%= JSON.pretty_generate(@content.full_object) %>
29+
</pre>

0 commit comments

Comments
 (0)