summaryrefslogtreecommitdiff
path: root/app/views/monsters/show.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-28 21:23:38 -0400
committerDavid Gay <david@davidgay.org>2021-05-28 21:23:38 -0400
commitca98987c1a14655aedb4bdcf8fef7311131ca1be (patch)
tree38fdd410cd6fdf97df7fe6215b66765875589ed9 /app/views/monsters/show.html.erb
parentdbc5bea2712344664e0760dc287a7f53754b14d1 (diff)
Monsters controller, activities index, and links to activities and items indexes
Diffstat (limited to 'app/views/monsters/show.html.erb')
-rw-r--r--app/views/monsters/show.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/monsters/show.html.erb b/app/views/monsters/show.html.erb
new file mode 100644
index 0000000..9c4dfeb
--- /dev/null
+++ b/app/views/monsters/show.html.erb
@@ -0,0 +1,12 @@
+<h1 class="text-3xl mb-2"><%= @monster.name %></h1>
+<p class="italic"><%= @monster.description %></p>
+
+<div class="my-6">
+ <h2 class="text-xl">Game Data</h2>
+ <p>GID: <span class="text-code"><%= @monster.gid %></span></p>
+ <% if @monster.whatnot %>
+ <div class="text-code my-2"><%= JSON.pretty_generate(@monster.whatnot) %></div>
+ <% else %>
+ <p>Monster has no additional data.</p>
+ <% end %>
+</div>