mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 17:09:45 +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,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>
|
||||
|
|
Loading…
Reference in a new issue