<%= work_package.status %>
#<%= work_package.id %> - <%= work_package.project %> <% unique_reasons = unique_reasons_of_notifications(notifications_by_work_package) %> <%= ' - ' unless unique_reasons.length === 1 && unique_reasons.first.nil? %> <% unique_reasons.each_with_index do |reason, index| %> <%= I18n.t( :"mail.digests.work_packages.reason.#{reason || :unknown}", default: '') %><%= ', ' unless unique_reasons.size-1 == index %> <% end %>
<%= notifications_by_work_package.length %>
<%= work_package.type.to_s.upcase %> <%= work_package.subject %>
<%= yield %>