always show comment icon on cards: bubble+ to add the first comment, placed in native comment slot; v0.3.1
This commit is contained in:
@@ -10,5 +10,9 @@
|
||||
* so it does not appear for read-only viewers.
|
||||
*/ ?>
|
||||
<?php if (empty($task['nb_comments']) && $this->user->hasProjectAccess('CommentController', 'save', $task['project_id'])): ?>
|
||||
<?= $this->modal->medium('comments-o', '+', 'CommentListController', 'show', array('task_id' => $task['id']), t('Add a comment')) ?>
|
||||
<?php /* The hook renders at the END of the icons row; relocate.js moves this span up to
|
||||
the native comment slot (before the description icon) so the order matches. */ ?>
|
||||
<span class="organontweaks-comment-add">
|
||||
<?= $this->modal->medium('comments-o', '+', 'CommentListController', 'show', array('task_id' => $task['id']), t('Add a comment')) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
Reference in New Issue
Block a user