diff options
author | David Gay <david@davidgay.org> | 2021-07-06 20:18:45 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-06 20:22:38 -0400 |
commit | 4edcf33d0b206a35963695453a636f194789ecbb (patch) | |
tree | f4719f5b28d9e40d2404931515b38821a7d0c695 /app/views/application | |
parent | 0ac5950f8c50bfcb6ce6cd89c0e80d982513cd15 (diff) |
Display remaining actions below timer when a set amount of actions have been queued
Diffstat (limited to 'app/views/application')
-rw-r--r-- | app/views/application/_timer.html.erb | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ </div> </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> - <div class="text-center my-2"> + <div class="text-center text-sm my-2"> + <% if current_char.queued_actions %> + <div class="my-1"> + <%= pluralize(current_char.queued_actions + 1, "action") %> remaining. + </div> + <% end %> <%= button_to "Stop", stop_activity_path, class: "text-sm" %> </div> |