scinote-web/app/views/my_modules/_due_date_label.html.erb
Luka Murn b64e200b91 Refactor canvas a lot.
Also refactor localization files concerning canvas.
2016-07-28 16:41:10 +02:00

8 lines
293 B
Text

<% if my_module.due_date then %>
<%=l my_module.due_date, format: :full_date %>
<% if my_module.is_overdue? or my_module.is_one_day_prior? %>
<span class="glyphicon glyphicon-alert"></span>
<% end %>
<% else %>
<em><%=t "experiments.canvas.full_zoom.no_due_date" %></em>
<% end %>