mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
|
<div class="comment <?= isset($preview) ? 'comment-preview' : '' ?>" id="comment-<?= $comment['id'] ?>">
|
||
|
|
||
|
<p class="comment-title">
|
||
|
<span class="comment-username"><?= Helper\escape($comment['username']) ?></span> @ <span class="comment-date"><?= dt('%B %e, %G at %k:%M %p', $comment['date']) ?></span>
|
||
|
</p>
|
||
|
|
||
|
<div class="comment-inner">
|
||
|
|
||
|
<?php if (! isset($preview)): ?>
|
||
|
<ul class="comment-actions">
|
||
|
<li><a href="#comment-<?= $comment['id'] ?>"><?= t('link') ?></a></li>
|
||
|
<?php if (Helper\is_admin() || Helper\is_current_user($comment['user_id'])): ?>
|
||
|
<li>
|
||
|
<a href="?controller=comment&action=confirm&task_id=<?= $task['id'] ?>&comment_id=<?= $comment['id'] ?>"><?= t('remove') ?></a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a href="?controller=comment&action=edit&task_id=<?= $task['id'] ?>&comment_id=<?= $comment['id'] ?>"><?= t('edit') ?></a>
|
||
|
</li>
|
||
|
<?php endif ?>
|
||
|
</ul>
|
||
|
<?php endif ?>
|
||
|
|
||
|
<div class="markdown">
|
||
|
<?= Helper\parse($comment['comment']) ?>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|