From dcbb8efcde93af6452af77fea6b1038784db477e Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 31 May 2021 16:51:47 -0400 Subject: Character resting --- app/views/characters/show.html.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/views/characters') 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 @@ <% if @character == current_char %> +
+

Rest

+

+ 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 %> +

+ <%= button_to current_char.resting? ? "Stop Resting" : "Start Resting", toggle_resting_path %> +
+ <%= link_to "Manage account", edit_user_registration_path, class: "text-sm" %> <% end %> -- cgit v1.2.3