From 0dcca6a8a7bb3a2632cff7f30cdd47bd9a2ca4ef Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Fri, 14 Apr 2017 12:46:24 -0400 Subject: [PATCH] more info about recipient schedules --- app/views/recipients/show.html.haml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/recipients/show.html.haml b/app/views/recipients/show.html.haml index ea80feee..a031f3af 100644 --- a/app/views/recipients/show.html.haml +++ b/app/views/recipients/show.html.haml @@ -46,6 +46,15 @@ %strong Opted out: = @recipient.opted_out + - if (recipient_schedule = @recipient.recipient_schedules.first).present? + %p + %strong Last Attempt At: + = recipient_schedule.last_attempt_at.strftime('%A, %b %d') + + %p + %strong Next Attempt At: + = recipient_schedule.next_attempt_at.strftime('%A, %b %d') + = link_to 'Edit', edit_school_recipient_path(@school, @recipient) | = link_to 'Back', school_path(@school)