Add partial templates for rendering issue comments and Kanban cards. Details: - New Features - Add `comment_list.html` to display comment author, timestamp, and body. - Add `kanban/card.html` for draggable Kanban card UI with edit link and due date.
17 lines
641 B
HTML
17 lines
641 B
HTML
<div class="card bg-base-200 shadow-sm cursor-move" draggable="true"
|
|
id="card-{{ card.pk }}"
|
|
hx-post="{% url 'card_move' card.pk %}"
|
|
hx-trigger="end"
|
|
hx-target="#column-{{ card.column.pk }}"
|
|
hx-swap="innerHTML">
|
|
<div class="card-body p-2 text-sm">
|
|
<div class="flex justify-between items-start">
|
|
<span>{{ card.title }}</span>
|
|
<a href="{% url 'card_edit' card.pk %}" class="text-xs opacity-50 hover:opacity-100">edit</a>
|
|
</div>
|
|
{% if card.due_date %}
|
|
<span class="text-xs opacity-60">Due: {{ card.due_date }}</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|