Do not display comment icon link in public view
This commit is contained in:
@@ -96,14 +96,18 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($task['nb_comments'] > 0): ?>
|
<?php if ($task['nb_comments'] > 0): ?>
|
||||||
<?= $this->modal->medium(
|
<?php if ($not_editable): ?>
|
||||||
'comments-o',
|
<span title="<?= $task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments']) ?>"><i class="fa fa-comments-o"></i> <?= $task['nb_comments'] ?></span>
|
||||||
$task['nb_comments'],
|
<?php else: ?>
|
||||||
'CommentListController',
|
<?= $this->modal->medium(
|
||||||
'show',
|
'comments-o',
|
||||||
array('task_id' => $task['id'], 'project_id' => $task['project_id']),
|
$task['nb_comments'],
|
||||||
$task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments'])
|
'CommentListController',
|
||||||
) ?>
|
'show',
|
||||||
|
array('task_id' => $task['id'], 'project_id' => $task['project_id']),
|
||||||
|
$task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments'])
|
||||||
|
) ?>
|
||||||
|
<?php endif ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (! empty($task['description'])): ?>
|
<?php if (! empty($task['description'])): ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user