mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
8ff822c7e5
* Implement due date column in experiment table view [SCI-7406] * Fix due date [SCI-7406] * Move text to translation [SCI-7406] * Fix table due date partial [SCI-7406] * Fix table due date partial [SCI-7406]
17 lines
764 B
Text
17 lines
764 B
Text
<span class="due-date-label" data-due-date="<%= my_module.due_date.present? %>" >
|
|
<% if my_module.is_one_day_prior? %>
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
|
<span class="fas fa-exclamation-triangle <%= get_task_alert_color(my_module) %>"></span>
|
|
<% elsif my_module.is_overdue? %>
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
|
<span class="fas fa-exclamation-triangle <%= get_task_alert_color(my_module) %>"></span>
|
|
<% elsif my_module.due_date %>
|
|
<%= l(my_module.due_date, format: :full_date) %>
|
|
<% elsif can_update_my_module_due_date?(user, my_module) %>
|
|
<a href='#'>
|
|
<%= t('my_modules.details.no_due_date_placeholder') %>
|
|
</a>
|
|
<% else %>
|
|
<%= t('my_modules.details.no_due_date') %>
|
|
<% end %>
|
|
</span>
|