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

🔔 Manage Reminders

<% if (my $msg = flash('message')) { %> <% } %> <% if (@$reminders) { %>
<% for my $r (@$reminders) { %>

<%= $r->{title} %>

🕒 <% my $raw_time = substr($r->{reminder_time}, 0, 5); my ($h, $m) = split(':', $raw_time); my $ampm = $h >= 12 ? 'PM' : 'AM'; $h = $h % 12; $h = 12 if $h == 0; my $display_time = sprintf("%d:%02d %s", $h, $m, $ampm); %> <%= $display_time %>
<% my %active_days = map { $_ => 1 } split(',', $r->{days_of_week}); %> M T W T F S S
<% if ($r->{description}) { %>

<%= $r->{description} %>

<% } else { %>

No description provided.

<% } %>
Recipients
% if ($r->{recipient_names}) { % for my $name (split(',', $r->{recipient_names})) { <%= $name %> % } % } <% if ($r->{last_run_at}) { %> ✓ Sent Today <% } %>
<% } %>
<% } else { %>

📭 No recurring reminders configured.

Click the button above to create your first weekly reminder.

<% } %>

Confirm Deletion

×

Are you sure you want to delete ""?