mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
66 lines
4 KiB
PHP
66 lines
4 KiB
PHP
<?php if (! empty($task['category_id'])): ?>
|
|
<div class="task-board-category-container">
|
|
<span class="task-board-category">
|
|
<?php if ($not_editable): ?>
|
|
<?= $this->e($task['category_name']) ?>
|
|
<?php else: ?>
|
|
<?= $this->url->link(
|
|
$this->e($task['category_name']),
|
|
'board',
|
|
'changeCategory',
|
|
array('task_id' => $task['id'], 'project_id' => $task['project_id']),
|
|
false,
|
|
'task-board-popover' . (! empty($task['category_description']) ? ' tooltip' : ''),
|
|
! empty($task['category_description']) ? $this->text->markdown($task['category_description']) : t('Change category')
|
|
) ?>
|
|
<?php endif ?>
|
|
</span>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<div class="task-board-icons">
|
|
<?php if (! empty($task['date_due'])): ?>
|
|
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
|
|
<i class="fa fa-calendar"></i>
|
|
<?= (date('Y') === date('Y', $task['date_due']) ? dt('%b %e', $task['date_due']) : dt('%b %e %Y', $task['date_due'])) ?>
|
|
</span>
|
|
<?php endif ?>
|
|
|
|
<?php if ($task['recurrence_status'] == \Model\Task::RECURRING_STATUS_PENDING): ?>
|
|
<span title="<?= t('Recurrence') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-refresh fa-rotate-90"></i></span>
|
|
<?php endif ?>
|
|
|
|
<?php if ($task['recurrence_status'] == \Model\Task::RECURRING_STATUS_PROCESSED): ?>
|
|
<span title="<?= t('Recurrence') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-refresh fa-rotate-90 fa-inverse"></i></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['nb_links'])): ?>
|
|
<span title="<?= t('Links') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'tasklinks', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-code-fork"></i> <?= $task['nb_links'] ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['nb_subtasks'])): ?>
|
|
<span title="<?= t('Sub-Tasks') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'subtasks', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-bars"></i> <?= round($task['nb_completed_subtasks']/$task['nb_subtasks']*100, 0).'%' ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['nb_files'])): ?>
|
|
<span title="<?= t('Attachments') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'attachments', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-paperclip"></i> <?= $task['nb_files'] ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['nb_comments'])): ?>
|
|
<span title="<?= p($task['nb_comments'], t('%d comment', $task['nb_comments']), t('%d comments', $task['nb_comments'])) ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'comments', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"><i class="fa fa-comment-o"></i> <?= $task['nb_comments'] ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['description'])): ?>
|
|
<span title="<?= t('Description') ?>" class="task-board-tooltip" data-href="<?= $this->url->href('board', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>">
|
|
<i class="fa fa-file-text-o"></i>
|
|
</span>
|
|
<?php endif ?>
|
|
|
|
<?php if ($task['score']): ?>
|
|
<span class="task-score"><?= $this->e($task['score']) ?></span>
|
|
<?php endif ?>
|
|
|
|
<?php if (! empty($task['time_estimated'])): ?>
|
|
<span class="task-time-estimated" title="<?= t('Time estimated') ?>"><?= $this->e($task['time_estimated']).'h' ?></span>
|
|
<?php endif ?>
|
|
</div>
|