<%# /templates/timers/manage.html.ep %> % layout 'default'; % title 'Manage Timers'; <% content_for 'head' => begin %> <% end %>

Timer Management

% if (flash('success')) {
<%= flash('success') %>
% }
% if (@$timers == 0) {

No timers found.

% } else {
% for my $timer (@$timers) { % }
User Timer Name Category Weekday Limit Weekend Limit Used Today Remaining Status Actions
<%= $timer->{username} %> <%= $timer->{name} %> <%= $timer->{category} %> <%= $timer->{weekday_minutes} %>m <%= $timer->{weekend_minutes} %>m <%= int(($timer->{elapsed_seconds} // 0) / 60) %>m % my $remaining = $timer->{remaining_seconds} // 0; % if ($remaining > 0) { <%= int($remaining / 60) %>m % } else { EXPIRED % } % if ($timer->{is_running}) { ▶️ Running % } elsif ($timer->{is_paused}) { ⏸️ Paused % } else { ⏺️ Idle % }
% }