summaryrefslogtreecommitdiff
path: root/app/views/activities/_timer.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-26 19:39:05 -0400
committerDavid Gay <david@davidgay.org>2021-05-26 19:39:05 -0400
commit629542aa0e3ad63ea1426571cb7dcae6e5da973d (patch)
tree44440a4bfcfdd4b10709d3a82db717b1452f12fb /app/views/activities/_timer.html.erb
parent9b2acceda7e36946f9bb15ff8d1a93f9c45a964f (diff)
Show level, xp, xptnl on timer
Diffstat (limited to 'app/views/activities/_timer.html.erb')
-rw-r--r--app/views/activities/_timer.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/activities/_timer.html.erb b/app/views/activities/_timer.html.erb
index 46e0eb0..c7d881c 100644
--- a/app/views/activities/_timer.html.erb
+++ b/app/views/activities/_timer.html.erb
@@ -5,5 +5,12 @@
class="text-center">
<span data-timer-target="timer" class="text-3xl"></span>
</div>
+
+ <% most_recent_cs = current_char.character_skills.order(:updated_at).last %>
+ <div class="text-center text-sm">
+ <div class="text-xs"><%= most_recent_cs.skill.name %> level <%= most_recent_cs.level %></div>
+ <div><%= most_recent_cs.xp_to_next_level %> XP to next level</div>
+ </div>
+
<%= button_to "Stop", stop_activity_path %>
<% end %>