summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-20 18:43:06 -0400
committerDavid Gay <david@davidgay.org>2021-05-20 18:43:06 -0400
commitd117dea29052b1ca23b1c848d92f1f9803945304 (patch)
tree6f8c8df8d78187da9b853b9c1accdf30e6dc53b2
parentb0998224427594acda8e4e8419a945c20c062568 (diff)
Display learned activities count on characters#show
-rw-r--r--app/views/characters/show.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb
index 3ee7088..4f2ae2e 100644
--- a/app/views/characters/show.html.erb
+++ b/app/views/characters/show.html.erb
@@ -1,7 +1,11 @@
-<h1 class="text-3xl">
+<h1 class="text-3xl mb-4">
<%= @character.name %>
</h1>
-<p>First entered the planes <%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.</p>
+
+<p class="mb-4">First entered the planes
+ <%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.</p>
+
+<p class="mb-4">Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).</p>
<h2 class="text-2xl">Skills</h2>