mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Fix aligment due date and status on canvas card
This commit is contained in:
parent
0ae39678d4
commit
78c9394b1f
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…
Add table
Reference in a new issue