Todo/Done menu mark all in this column

This commit is contained in:
2026-07-18 22:43:41 -03:00
parent c88e52ab01
commit 8136c01403
13 changed files with 204 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
<?php
/**
* Done/Due badge in the task view, 4th column (near the due date). Rendered by
* Done/Todo badge in the task view, 4th column (near the due date). Rendered by
* template:task:details:fourth-column as a list item, matching the surrounding <li> fields. Same
* two-state toggle as the board badge; only shown to users who may edit the task.
*/
@@ -12,7 +12,7 @@ $done = $this->OrganonDoneHelper->isDone($task);
<li>
<span class="organontweaks-done<?= $done ? ' is-done' : '' ?>">
<?= $this->url->link(
$done ? '<i class="fa fa-check-square"></i> '.t('Done') : '<i class="fa fa-square"></i> '.t('Due'),
$done ? '<i class="fa fa-check-square"></i> '.t('Done') : '<i class="fa fa-square"></i> '.t('Todo'),
'DoneController',
'toggle',
array('plugin' => 'OrganonTweaks', 'task_id' => $task['id'], 'project_id' => $task['project_id'], 'from' => 'task'),