captains-log/templates/partials/tasks/item.html

10 lines
311 B
HTML
Raw Normal View History

<li hx-target="this" hx-swap="outerHtml">
{{ task.title }}
{% match task.description %}
{% when Some with (val) %}
-- <span> {{ val }}</span>
{% when None %}
{% endmatch %}
<button hx-get="/tasks/{{task.id}}/edit">Edit</button>
</li>