app/views/staff_mailer/weekly_report.haml
%h1 Your Weekly Report
%p
For the week of
%strong
= @period_start.strftime("%A, %B %-d")
–
= @period_end.strftime("%A, %B %-d")
%h2 Admissions
- if @new_admissions_metrics
%p
📥
%strong= @applications[:new]
new applications (#{@applications[:total]} total)
%p
✅
%strong= @rsvp_confirmed[:new]
new RSVP confirmations (#{@rsvp_confirmed[:total]} total)
%p
❌
%strong= @rsvp_denied[:new]
new RSVP denials (#{@rsvp_denied[:total]} total)
- else
%p
%em No change from last week
%h2 Transportation
- @bus_metrics.each do |bus_metric|
%p
%u= bus_metric[:name]
%br
🚌
%strong= bus_metric[:total]
total passengers
%h2 Communication
- if @new_communication_metrics
%p
✉️
%strong= @messages_sent
new bulk emails sent out
- else
%p
%em No new bulk emails sent