todo_widget_tasks: Fix invalid <div> inside <label>.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-09-05 17:52:24 -07:00
committed by Tim Abbott
parent 0dbe85fd34
commit 2dc2255f26

View File

@@ -1,17 +1,17 @@
{{#each all_tasks}} {{#each all_tasks}}
<li> <li>
<label class="checkbox"> <label class="checkbox">
<div class="todo-checkbox"> <span class="todo-checkbox">
<input type="checkbox" class="task" data-key="{{ key }}" {{#if completed}}checked{{/if}}/> <input type="checkbox" class="task" data-key="{{ key }}" {{#if completed}}checked{{/if}}/>
<span class="custom-checkbox"></span> <span class="custom-checkbox"></span>
</div> </span>
<div class="todo-task"> <span class="todo-task">
{{#if completed}} {{#if completed}}
<s><strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}</s> <s><strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}</s>
{{else}} {{else}}
<strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}} <strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}
{{/if}} {{/if}}
</div> </span>
</label> </label>
</li> </li>
{{/each}} {{/each}}