rubyforgood/casa

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

Summary

Maintainability
Test Coverage
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
  <td class="content-block" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 18px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
    <b>Additional Notes:</b>
    <br>
  </td>
</tr>

<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
  <% inactive_messages&.each do |message| %>
    <td class="content-block" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
      <%= message %>
      <br>
    </td>
  <% end %>
</tr>

<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
  <td class="content-block" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 18px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
    <% if inactive_messages&.none? %>
      There are no additional notes.
    <% end %>
  </td>
</tr>