Show status on task card

This commit is contained in:
Urban Rotnik 2020-09-01 14:56:48 +02:00
parent bd05214514
commit ed5869ff8e
2 changed files with 5 additions and 2 deletions

View file

@ -762,7 +762,10 @@ ul.double-line > li {
background-color: var(--state-color);
color: $color-white;
margin: 3px 0;
max-width: 100%;
overflow: hidden;
padding: 2px 8px;
text-overflow: ellipsis;
white-space: nowrap;
width: fit-content;
}

View file

@ -37,8 +37,8 @@
<% else %>
<%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %>
<% end %>
<div class="status-label" style="--state-color: #2DBE61">
Completed
<div class="status-label" style="--state-color: <%= my_module.my_module_status.color %>">
<%= my_module.my_module_status.name %>
</div>
</div>