Merge pull request #2836 from urbanrotnik/ur-sci-4992

Fix canvas task due date and status alignment [SCI-4992]
This commit is contained in:
Urban Rotnik 2020-09-09 15:16:34 +02:00 committed by GitHub
commit 82e01e5232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,14 +29,16 @@
</div>
<div class="panel-body">
<% 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 %>
<div>
<% 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 %>
</div>
<div class="status-label" style="--state-color: <%= my_module.my_module_status.color %>">
<%= my_module.my_module_status.name %>
</div>