rubyforgood/casa

View on GitHub
app/views/supervisor_mailer/weekly_digest.html.erb

Summary

Maintainability
Test Coverage
<meta itemprop="name" content="Weekly Volunteer Activity Summary Email" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<style>/* Email styles need to be inline */</style>
<table width="100%" cellpadding="0" cellspacing="0" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
  <%= render("summary_header", has_active_volunteers: @supervisor.volunteers.length == 0, supervisor_display_name: @supervisor.display_name) %>
  <%= render("active_volunteers", supervisor: @supervisor, active_ever_assigned: @supervisor.volunteers_ever_assigned.where("supervisor_volunteers.is_active = ?", true).active) %>
  <%= render("recently_unassigned_volunteers", supervisor: @supervisor) %>
  <%= render("additional_notes", inactive_messages: @inactive_messages) %>
  <%= render("pending_volunteers", supervisor: @supervisor) %>
  <%= render("no_recent_sign_in", supervisor: @supervisor, inactive_volunteers: @inactive_volunteers) %>
</table>