logbook search
This commit is contained in:
@@ -69,26 +69,40 @@
|
||||
<div class="card">
|
||||
<h3>Tasks in this Session</h3>
|
||||
{% if not tasks %}
|
||||
<p style="color: #999;">No tasks were tracked for this session.</p>
|
||||
<p style="color: var(--text-secondary);">No tasks were tracked for this session.</p>
|
||||
{% else %}
|
||||
<ul style="list-style: none; padding: 0;">
|
||||
<div class="checklist-container">
|
||||
{% for task in tasks %}
|
||||
<li style="border-bottom: 1px solid #eee; padding: 15px 0; display: flex; align-items: center;">
|
||||
<span style="margin-right: 15px; font-size: 1.2rem;">
|
||||
{% if task.status == 'completed' %}Done{% else %}Open{% endif %}
|
||||
</span>
|
||||
<div style="flex-grow: 1;">
|
||||
<a href="{{ url_for('task_detail', task_id=task._id) }}" style="font-weight: bold; display: block; font-size: 1.1rem;">{{ task.name }}</a>
|
||||
{% if task.completed_at %}
|
||||
<small style="color: #27ae60;">Completed at {{ task.completed_at.strftime('%H:%M') }}</small>
|
||||
{% else %}
|
||||
<small style="color: #e67e22;">Not completed</small>
|
||||
<div class="checklist-item {% if task.status == 'completed' %}completed{% endif %}" style="padding: 12px 0;">
|
||||
<!-- Visual Checkbox (Read Only) -->
|
||||
<div style="
|
||||
width: 18px; height: 18px;
|
||||
border: 2px solid {% if task.status == 'completed' %}var(--primary-color){% else %}var(--text-secondary){% endif %};
|
||||
border-radius: 4px;
|
||||
background: {% if task.status == 'completed' %}var(--primary-color){% else %}transparent{% endif %};
|
||||
margin-right: 12px; margin-top: 3px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
">
|
||||
{% if task.status == 'completed' %}
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="{{ url_for('task_detail', task_id=task._id) }}" class="btn" style="font-size: 0.8rem; padding: 5px 10px;">View Task ></a>
|
||||
</li>
|
||||
|
||||
<div style="flex-grow: 1;">
|
||||
<a href="{{ url_for('task_detail', task_id=task._id) }}" style="text-decoration: none; color: inherit; font-weight: 500; display: block;">
|
||||
{{ task.name }}
|
||||
</a>
|
||||
{% if task.completed_at %}
|
||||
<small style="color: var(--text-secondary); font-size: 0.8rem;">Completed at {{ task.completed_at.strftime('%H:%M') }}</small>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<a href="{{ url_for('task_detail', task_id=task._id) }}" style="color: var(--text-secondary); text-decoration: none; font-size: 1.2rem; line-height: 1;">
|
||||
›
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user