scinote-web/app/views/my_modules/_due_date_label.html.erb
2017-02-10 14:27:20 +01:00

29 lines
1,022 B
Text

<% if my_module.completed? %>
<%= t("my_modules.states.completed") %>
<span class="due-date-label">
<%= l(my_module.completed_on, format: :full_date) %>
<span class="glyphicon glyphicon-ok"></span>
</span>
<% elsif my_module.is_one_day_prior? %>
<%= t("my_modules.states.due_soon") %>
<span class="due-date-label">
<%=l my_module.due_date, format: :full_date %>
<span class="glyphicon glyphicon-alert"></span>
</span>
<% elsif my_module.is_overdue? %>
<%= t("my_modules.states.overdue") %>
<span class="due-date-label">
<%=l my_module.due_date, format: :full_date %>
<span class="glyphicon glyphicon-alert"></span>
</span>
<% elsif my_module.due_date %>
<%= t("experiments.canvas.full_zoom.due_date") %>
<span class="due-date-label">
<%=l my_module.due_date, format: :full_date %>
</span>
<% else %>
<%= t("experiments.canvas.full_zoom.due_date") %>
<span class="due-date-label">
<em><%=t "experiments.canvas.full_zoom.no_due_date" %></em>
</span>
<% end %>