diff options
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 %> |