mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 09:28:37 +08:00
Merge pull request #2836 from urbanrotnik/ur-sci-4992
Fix canvas task due date and status alignment [SCI-4992]
This commit is contained in:
commit
82e01e5232
1 changed files with 8 additions and 6 deletions
|
@ -29,6 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<div>
|
||||||
<% if !my_module.completed? && can_manage_module?(my_module) %>
|
<% if !my_module.completed? && can_manage_module?(my_module) %>
|
||||||
<%= link_to due_date_my_module_path(my_module, format: :json), remote: true,
|
<%= link_to due_date_my_module_path(my_module, format: :json), remote: true,
|
||||||
class: "due-date-link due-date-refresh" do %>
|
class: "due-date-link due-date-refresh" do %>
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %>
|
<%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
<div class="status-label" style="--state-color: <%= my_module.my_module_status.color %>">
|
<div class="status-label" style="--state-color: <%= my_module.my_module_status.color %>">
|
||||||
<%= my_module.my_module_status.name %>
|
<%= my_module.my_module_status.name %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue