2020-03-17 00:55:35 +08:00
|
|
|
<% if my_module.completed? %>
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= t('my_modules.states.completed') %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="due-date-label">
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= l(my_module.completed_on, format: :full_date) %>
|
2020-03-17 00:55:35 +08:00
|
|
|
</span>
|
|
|
|
<% elsif my_module.is_one_day_prior? %>
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= t('my_modules.states.due_soon') %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="due-date-label">
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
|
|
|
</span>
|
|
|
|
<% elsif my_module.is_overdue? %>
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= t('my_modules.states.overdue') %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="due-date-label">
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
|
|
|
</span>
|
|
|
|
<% elsif my_module.due_date %>
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= t('experiments.canvas.full_zoom.due_date') %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<span class="due-date-label">
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
2020-03-17 00:55:35 +08:00
|
|
|
</span>
|
|
|
|
<% else %>
|
2020-03-24 17:30:29 +08:00
|
|
|
<%= t('experiments.canvas.full_zoom.due_date') %>
|
2021-10-26 18:06:26 +08:00
|
|
|
<span class="due-date-label empty-label">
|
|
|
|
<%= t('my_modules.details.no_due_date_placeholder') %>
|
2020-03-17 00:55:35 +08:00
|
|
|
</span>
|
|
|
|
<% end %>
|