kanban view changes
This commit is contained in:
parent
6f1ab9f30b
commit
3477fc639b
BIN
assets/pasted-20251124-095308-75e5f264.png
Normal file
BIN
assets/pasted-20251124-095308-75e5f264.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
@ -62,11 +62,14 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{% for item in todo_list %}
|
{% for item in todo_list %}
|
||||||
<tr class="{% if item.status == 'inprogress' %}table-info{% elif item.status == 'done' %}table-success{% elif item.status == 'blocked' %}table-danger{% elif item.status == 'delegated' %}table-warning{% endif %}">
|
<tr class="{% if item.status == 'inprogress' %}table-info{% elif item.status == 'done' %}table-success{% elif item.status == 'blocked' %}table-danger{% elif item.status == 'delegated' %}table-warning{% endif %}">
|
||||||
<td>{{ item.title }}</td>
|
<td>
|
||||||
|
{{ item.title }}
|
||||||
|
<div><span class="task-id text-muted small">#{{ item.id }}</span></div>
|
||||||
|
</td>
|
||||||
<td>{{ item.description|default:"" }}</td>
|
<td>{{ item.description|default:"" }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if item.tags %}
|
{% if item.tags %}
|
||||||
{% for tag in item.tags.split|slice:":3" %}
|
{% for tag in item.tags.split:','|slice:":3" %}
|
||||||
<span class="badge bg-secondary">{{ tag }}</span>
|
<span class="badge bg-secondary">{{ tag }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -28,11 +28,14 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn-close" aria-label="Close"></button>
|
<button type="submit" class="btn-close" aria-label="Close"></button>
|
||||||
</form>
|
</form>
|
||||||
<h5 class="card-title h6">{{ item.title }}</h5>
|
<div class="d-flex justify-content-between align-items-start">
|
||||||
|
<h5 class="card-title h6 mb-0">{{ item.title }}</h5>
|
||||||
|
<span class="task-id text-muted small">#{{ item.id }}</span>
|
||||||
|
</div>
|
||||||
<p class="card-text small">{{ item.description|default:""|truncatewords:15 }}</p>
|
<p class="card-text small">{{ item.description|default:""|truncatewords:15 }}</p>
|
||||||
{% if item.tags %}
|
{% if item.tags %}
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
{% for tag in item.tags.split|slice:":3" %}
|
{% for tag in item.tags.split:','|slice:":3" %}
|
||||||
<span class="badge bg-secondary">{{ tag }}</span>
|
<span class="badge bg-secondary">{{ tag }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -296,3 +296,12 @@ body {
|
|||||||
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
|
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
|
||||||
transform: rotate(3deg);
|
transform: rotate(3deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.task-id {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kanban-card .task-id {
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
@ -245,14 +245,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.kanban-column {
|
.kanban-column {
|
||||||
flex: 1 1 300px; /* Flex-grow, flex-shrink, and basis */
|
flex: 1 1 18rem;
|
||||||
min-width: 300px;
|
min-width: 16rem;
|
||||||
max-width: 320px;
|
max-width: 18rem;
|
||||||
background-color: #f0f2f5;
|
background-color: #f0f2f5;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
max-height: calc(100vh - 250px); /* Adjust based on your layout */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kanban-column h2 {
|
.kanban-column h2 {
|
||||||
@ -297,3 +296,12 @@ body {
|
|||||||
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
|
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
|
||||||
transform: rotate(3deg);
|
transform: rotate(3deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.task-id {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kanban-card .task-id {
|
||||||
|
margin-top: 0.2rem;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user