fix: don't render assignment status when in draft
This commit is contained in:
@@ -63,29 +63,31 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div class="flex flex-col items-center space-y-2">
|
||||
{% if assignment.staffed %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-green-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% elseif assignment.partlyStaffed %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-yellow-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% elseif assignment.inProgress %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-blue-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% if assignment.status == 'draft' %}
|
||||
{{ icon('hourglass', 'w-4 h-4') }}
|
||||
{% else %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-gray-100">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% endif %}
|
||||
{% if assignment.status == 'closed' %}
|
||||
{{ icon('locked', 'w-4 h-4 text-red-500') }}
|
||||
{% elseif assignment.status == 'draft' %}
|
||||
{{ icon('hourglass', 'w-4 h-4 text-yellow-500') }}
|
||||
{% else %}
|
||||
{{ icon('unlocked', 'w-4 h-4') }}
|
||||
{% if assignment.staffed %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-green-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% elseif assignment.partlyStaffed %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-yellow-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% elseif assignment.inProgress %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-blue-500">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% else %}
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-gray-100">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
{% endif %}
|
||||
{% if assignment.status == 'closed' %}
|
||||
{{ icon('locked', 'w-4 h-4 text-red-500') }}
|
||||
{% else %}
|
||||
{{ icon('unlocked', 'w-4 h-4') }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user