diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-04 20:36:14 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-04 20:36:14 -0500 |
commit | 850645dd6b22f5b495d1680e0b49540e0ebf9bd3 (patch) | |
tree | fc48ea9746b63f1a3839a8d89c33c7cdc2302ce7 | |
parent | 37332ae2222706f8fb330dae780dc938512edcf5 (diff) |
Fix issue subtasks status label #376
-rw-r--r-- | app/Template/subtask_show.php | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/app/Template/subtask_show.php b/app/Template/subtask_show.php index f1b0466f..29f4bfd1 100644 --- a/app/Template/subtask_show.php +++ b/app/Template/subtask_show.php @@ -19,21 +19,20 @@ <tr> <td><?= Helper\escape($subtask['title']) ?></td> <td> - <?php if (!isset($not_editable)): ?> - <a href="<?= Helper\u('subtask', 'toggleStatus', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?>"> - <?php endif ?> - <?php if ($subtask['status'] == 0): ?> - <i class="fa fa-square-o fa-fw"></i><i class="fa"> <?= Helper\escape($subtask['status_name']) ?></i> - <?php elseif ($subtask['status'] == 1): ?> - <i class="fa fa-gears fa-fw"></i><i class="fa"> <?= Helper\escape($subtask['status_name']) ?></i> - <?php else: ?> - <i class="fa fa-check-square-o fa-fw"></i><i class="fa"> <?= Helper\escape($subtask['status_name']) ?></i> - <?php endif ?> - <?php if (! isset($not_editable)): ?> - </a> - <?php endif ?> - </td> + <?php if ($subtask['status'] == 0): ?> + <i class="fa fa-square-o fa-fw"></i> + <?php elseif ($subtask['status'] == 1): ?> + <i class="fa fa-gears fa-fw"></i> + <?php else: ?> + <i class="fa fa-check-square-o fa-fw"></i> + <?php endif ?> + <?php if (! isset($not_editable)): ?> + <?= Helper\a(Helper\escape($subtask['status_name']), 'subtask', 'toggleStatus', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?> + <?php else: ?> + <?= Helper\escape($subtask['status_name']) ?> + <?php endif ?> + </td> <td> <?php if (! empty($subtask['username'])): ?> <?= Helper\escape($subtask['name'] ?: $subtask['username']) ?> |