<% nr_of_notifications = 0 %>
<% @modules.each do |mod| %>
<% if mod.is_overdue? && !mod.completed? %>
<% nr_of_notifications += 1 %>
<% days = t("projects.index.module_overdue_days", count: mod.overdue_for_days) %>
-
<%= l(mod.due_date, format: :full) %>
<%=t "projects.index.module_overdue_html", module: mod.name, days: days %>
<% elsif mod.is_one_day_prior? && !mod.completed? %>
<% nr_of_notifications += 1 %>
-
<%= l(mod.due_date, format: :full) %>
<%=t "projects.index.module_one_day_due_html", module: mod.name %>
<% end %>
<% end %>
<% if nr_of_notifications == 0 %>
- <%= t 'projects.index.no_notifications' %>
<% end %>