<% if current_char.activity %>

<%= current_char.activity.name %>

<% 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
<%= button_to "Stop", stop_activity_path %>
<% if current_char.activity.gid.include?("beastslay") %> <%= current_char.wounds %> / <%= current_char.max_wounds %> wounds <% end %> <% current_char.active_states.each do |state| %>
<%= state.condition.name %>
(expires in <%= distance_of_time_in_words_to_now(state.expires_at) %>)
<% end %>
<% else %>
<% if current_char.resting? %>

You're resting.

<% else %>

You're not doing anything.

<% end %>
<%= button_to current_char.resting? ? "Stop Resting" : "Start Resting", toggle_resting_path %>
You have <%= distance_of_time_in_words_to_now(current_char.rested_until) %> of rested time. <% if current_char.resting? %> This does not include time from your current rest. That time will be added when you stop resting. <% end %>
<% end %>