From 4edcf33d0b206a35963695453a636f194789ecbb Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 6 Jul 2021 20:18:45 -0400 Subject: Display remaining actions below timer when a set amount of actions have been queued --- app/views/application/_timer.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/views/application/_timer.html.erb') diff --git a/app/views/application/_timer.html.erb b/app/views/application/_timer.html.erb index 51d9b81..a18e739 100644 --- a/app/views/application/_timer.html.erb +++ b/app/views/application/_timer.html.erb @@ -15,14 +15,18 @@ - <% most_recent_cs = current_char.character_skills.order(:updated_at).last %>
<%= most_recent_cs.skill.name %> level <%= most_recent_cs.level %>
<%= most_recent_cs.xp_to_next_level %> XP to next level
-
+
+ <% if current_char.queued_actions %> +
+ <%= pluralize(current_char.queued_actions + 1, "action") %> remaining. +
+ <% end %> <%= button_to "Stop", stop_activity_path, class: "text-sm" %>
-- cgit v1.2.3