YaleSTC/shifts

View on GitHub
app/views/user_mailer/sub_created_notify.text.erb

Summary

Maintainability
Test Coverage
<%  user_name = @sub.user.name %>
<%= user_name %> is looking for a sub for the following shift:

Cluster:           <%= @sub.shift.location.name%>
Date:              <%= @sub.shift.start.to_s(:just_date) %>
Required Time:     <%= @sub.mandatory_start.to_s(:am_pm) %> - <%= @sub.mandatory_end.to_s(:am_pm) %>
<% if (@sub.start != @sub.mandatory_start) || (@sub.end != @sub.mandatory_end) %>
Bribe Time:        <%= @sub.start.to_s(:am_pm) %> - <%= @sub.end.to_s(:am_pm) %>
<% end %>

Additional comments from <%= user_name %>:
<%= h @sub.reason %>

Link to take this sub request:
<%= get_take_info_sub_request_url(@sub) %>