Merge pull request #4812 from aignatov-bio/ai-sci-7755-remove-warning-icon-for-completed-tasks

Experiment table - remove warning icon from due date for completed tasks [SCI-7755]
This commit is contained in:
aignatov-bio 2023-01-13 10:13:33 +01:00 committed by GitHub
commit 35d46e6cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
<span class="due-date-label" data-due-date="<%= my_module.due_date.present? %>" >
<% if my_module.is_one_day_prior? %>
<% if my_module.is_one_day_prior? && !my_module.completed? %>
<%= 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? %>
<% elsif my_module.is_overdue? && !my_module.completed? %>
<%= 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 %>