2020-03-17 00:55:35 +08:00
|
|
|
<span class="due-date-label <%= get_task_alert_color(my_module) %>">
|
2023-01-13 17:18:35 +08:00
|
|
|
<% if (my_module.archived_branch? || my_module.completed? ) && my_module.due_date %>
|
2020-12-11 00:47:10 +08:00
|
|
|
<%= l(my_module.due_date, format: :full) %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<% elsif my_module.is_one_day_prior? %>
|
|
|
|
<%= t('my_modules.states.due_soon') %>
|
|
|
|
<%= l(my_module.due_date, format: :full) %>
|
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
|
|
|
<% elsif my_module.is_overdue? %>
|
|
|
|
<%= t('my_modules.states.overdue') %>
|
|
|
|
<%= l(my_module.due_date, format: :full) %>
|
|
|
|
<span class="fas fa-exclamation-triangle"></span>
|
|
|
|
<% elsif my_module.due_date %>
|
|
|
|
<%= l(my_module.due_date, format: :full) %>
|
2021-11-19 20:24:57 +08:00
|
|
|
<% elsif due_date_editable %>
|
2020-05-07 22:11:22 +08:00
|
|
|
<span class="empty-label">
|
|
|
|
<%= t('my_modules.details.no_due_date_placeholder') %>
|
|
|
|
</span>
|
2020-03-17 00:55:35 +08:00
|
|
|
<% end %>
|
|
|
|
</span>
|