summaryrefslogtreecommitdiff
path: root/app/views/activities/_timer.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/activities/_timer.html.erb')
-rw-r--r--app/views/activities/_timer.html.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/activities/_timer.html.erb b/app/views/activities/_timer.html.erb
new file mode 100644
index 0000000..418c378
--- /dev/null
+++ b/app/views/activities/_timer.html.erb
@@ -0,0 +1,8 @@
+<% if current_char.activity %>
+ <div data-controller="activities--timer"
+ data-activities--timer-start-value="<%= current_char.activity_time_remaining.ceil %>"
+ class="text-center">
+ <span data-activities--timer-target="timer" class="text-3xl"></span>
+ </div>
+ <%= link_to "Stop", location_path(current_char.activity.location) %>
+<% end %>