2017-02-10 21:27:20 +08:00
|
|
|
<% if my_module.completed? %>
|
|
|
|
<%= t("my_modules.states.completed") %>
|
|
|
|
<span class="due-date-label">
|
2019-05-15 21:17:44 +08:00
|
|
|
<%= l(my_module.completed_on.utc, format: :full_date) %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-check"></span>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
|
|
|
<% elsif my_module.is_one_day_prior? %>
|
|
|
|
<%= t("my_modules.states.due_soon") %>
|
|
|
|
<span class="due-date-label">
|
2019-05-15 21:17:44 +08:00
|
|
|
<%=l my_module.due_date.utc, format: :full_date %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
|
|
|
<% elsif my_module.is_overdue? %>
|
|
|
|
<%= t("my_modules.states.overdue") %>
|
|
|
|
<span class="due-date-label">
|
2019-05-15 21:17:44 +08:00
|
|
|
<%=l my_module.due_date.utc, format: :full_date %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
|
|
|
<% elsif my_module.due_date %>
|
|
|
|
<%= t("experiments.canvas.full_zoom.due_date") %>
|
|
|
|
<span class="due-date-label">
|
2019-05-15 21:17:44 +08:00
|
|
|
<%=l my_module.due_date.utc, format: :full_date %>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% else %>
|
2017-02-10 21:27:20 +08:00
|
|
|
<%= t("experiments.canvas.full_zoom.due_date") %>
|
|
|
|
<span class="due-date-label">
|
|
|
|
<em><%=t "experiments.canvas.full_zoom.no_due_date" %></em>
|
|
|
|
</span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|