mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 13:59:56 +08:00
Fix due dates on task cards in the canvas [SCI-4487]
This commit is contained in:
parent
39be0d5109
commit
f9a7d58157
1 changed files with 10 additions and 10 deletions
|
@ -1,29 +1,29 @@
|
||||||
<% if my_module.completed? %>
|
<% if my_module.completed? %>
|
||||||
<%= t("my_modules.states.completed") %>
|
<%= t('my_modules.states.completed') %>
|
||||||
<span class="due-date-label">
|
<span class="due-date-label">
|
||||||
<%= l(my_module.completed_on.utc, format: :full_date) %>
|
<%= l(my_module.completed_on, format: :full_date) %>
|
||||||
<span class="fas fa-check"></span>
|
<span class="fas fa-check"></span>
|
||||||
</span>
|
</span>
|
||||||
<% elsif my_module.is_one_day_prior? %>
|
<% elsif my_module.is_one_day_prior? %>
|
||||||
<%= t("my_modules.states.due_soon") %>
|
<%= t('my_modules.states.due_soon') %>
|
||||||
<span class="due-date-label">
|
<span class="due-date-label">
|
||||||
<%=l my_module.due_date.utc, format: :full_date %>
|
<%= l(my_module.due_date, format: :full_date) %>
|
||||||
<span class="fas fa-exclamation-triangle"></span>
|
<span class="fas fa-exclamation-triangle"></span>
|
||||||
</span>
|
</span>
|
||||||
<% elsif my_module.is_overdue? %>
|
<% elsif my_module.is_overdue? %>
|
||||||
<%= t("my_modules.states.overdue") %>
|
<%= t('my_modules.states.overdue') %>
|
||||||
<span class="due-date-label">
|
<span class="due-date-label">
|
||||||
<%=l my_module.due_date.utc, format: :full_date %>
|
<%= l(my_module.due_date, format: :full_date) %>
|
||||||
<span class="fas fa-exclamation-triangle"></span>
|
<span class="fas fa-exclamation-triangle"></span>
|
||||||
</span>
|
</span>
|
||||||
<% elsif my_module.due_date %>
|
<% elsif my_module.due_date %>
|
||||||
<%= t("experiments.canvas.full_zoom.due_date") %>
|
<%= t('experiments.canvas.full_zoom.due_date') %>
|
||||||
<span class="due-date-label">
|
<span class="due-date-label">
|
||||||
<%=l my_module.due_date.utc, format: :full_date %>
|
<%= l(my_module.due_date, format: :full_date) %>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= t("experiments.canvas.full_zoom.due_date") %>
|
<%= t('experiments.canvas.full_zoom.due_date') %>
|
||||||
<span class="due-date-label">
|
<span class="due-date-label">
|
||||||
<em><%=t "experiments.canvas.full_zoom.no_due_date" %></em>
|
<em><%= t('experiments.canvas.full_zoom.no_due_date') %></em>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue