summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-25 20:44:53 -0400
committerDavid Gay <david@davidgay.org>2021-05-25 20:48:00 -0400
commit3f079ef8a7d46d5a4864836dbbd9e37b900c0a59 (patch)
tree612089e06320cdbba5bdd5ff99b10826a1ee4519 /app/views
parent7c191c15e3a16c5c4c53f6d83c89fe6d1219b6e5 (diff)
Award title for mining a yellow beryl
Diffstat (limited to 'app/views')
-rw-r--r--app/views/activities/_results.html.erb2
-rw-r--r--app/views/application/components/text/_title.html.erb2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb
index e0e54cc..49de2d5 100644
--- a/app/views/activities/_results.html.erb
+++ b/app/views/activities/_results.html.erb
@@ -16,6 +16,8 @@
<p class="text-xs italic"><%= result[:monster].description %></p>
<% when "xp" %>
<p class="text-xs">You gained <%= result[:xp] %> <%= result[:skill].name %> XP.</p>
+ <% when "title" %>
+ <p>You earned the title <%= render "application/components/text/title", title: result[:title] %>!</p>
<% when "message" %>
<p><%= result[:body] %></p>
<% when "error" %>
diff --git a/app/views/application/components/text/_title.html.erb b/app/views/application/components/text/_title.html.erb
index 1cf13b7..edcf220 100644
--- a/app/views/application/components/text/_title.html.erb
+++ b/app/views/application/components/text/_title.html.erb
@@ -2,6 +2,8 @@
<% case title.gid %>
<% when "steward" %>
<span class="text-gray-200">Steward</span>
+ <% when "beryly" %>
+ <span class="text-yellow-400">Beryly</span>
<% else %>
<%= title.name %>
<% end %>