summaryrefslogtreecommitdiff
path: root/app/views/items/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/items/show.html.erb')
-rw-r--r--app/views/items/show.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/items/show.html.erb b/app/views/items/show.html.erb
new file mode 100644
index 0000000..675c518
--- /dev/null
+++ b/app/views/items/show.html.erb
@@ -0,0 +1,12 @@
+<h1 class="text-3xl mb-2"><%= @item.name %></h1>
+<p class="italic"><%= @item.description %></p>
+
+<div class="my-6">
+ <h2 class="text-xl">Game Data</h2>
+ <p>GID: <span class="text-code"><%= @item.gid %></span></p>
+ <% if @item.whatnot %>
+ <div class="text-code my-2"><%= JSON.pretty_generate(@item.whatnot) %></div>
+ <% else %>
+ <p>Item has no additional data.</p>
+ <% end %>
+</div>