From 78c9394b1f8303061df58f4d709f1ed48fa7df94 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 9 Sep 2020 14:33:25 +0200 Subject: [PATCH] Fix aligment due date and status on canvas card --- app/views/canvas/full_zoom/_my_module.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/canvas/full_zoom/_my_module.html.erb b/app/views/canvas/full_zoom/_my_module.html.erb index af2f9385d..6a4b27cfc 100644 --- a/app/views/canvas/full_zoom/_my_module.html.erb +++ b/app/views/canvas/full_zoom/_my_module.html.erb @@ -29,14 +29,16 @@
- <% if !my_module.completed? && can_manage_module?(my_module) %> - <%= link_to due_date_my_module_path(my_module, format: :json), remote: true, - class: "due-date-link due-date-refresh" do %> +
+ <% if !my_module.completed? && can_manage_module?(my_module) %> + <%= link_to due_date_my_module_path(my_module, format: :json), remote: true, + class: "due-date-link due-date-refresh" do %> + <%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %> + <% end %> + <% else %> <%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %> <% end %> - <% else %> - <%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %> - <% end %> +
<%= my_module.my_module_status.name %>