mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
1a05c3a40c
Co-authored-by: Anton <anton@scinote.net>
28 lines
990 B
Text
28 lines
990 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>
|
|
<% 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="fas fa-exclamation-triangle"></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="fas fa-exclamation-triangle"></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 empty-label">
|
|
<%= t('my_modules.details.no_due_date_placeholder') %>
|
|
</span>
|
|
<% end %>
|