diff options
author | David Gay <david@davidgay.org> | 2021-05-31 16:51:47 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-31 16:51:47 -0400 |
commit | dcbb8efcde93af6452af77fea6b1038784db477e (patch) | |
tree | 476f1ccde46a663f27a3183e5fa9b202fce89f39 /app/views/characters | |
parent | 99e2507bea007e4aac17cf562139f53f7f9da9bf (diff) |
Character resting
Diffstat (limited to 'app/views/characters')
-rw-r--r-- | app/views/characters/show.html.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 71d75a5..b2e8f94 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -106,5 +106,16 @@ </div> <% if @character == current_char %> + <div class="my-6"> + <h2 class="text-2xl mb-4">Rest</h2> + <p class="mb-4"> + You have <%= @character.rested_duration %> seconds of rested time stored. + <% if current_char.resting? %> + This does not include time from your current rest. That time will be added when you stop resting. + <% end %> + </p> + <%= button_to current_char.resting? ? "Stop Resting" : "Start Resting", toggle_resting_path %> + </div> + <%= link_to "Manage account", edit_user_registration_path, class: "text-sm" %> <% end %> |