diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-24 22:51:30 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-24 22:51:30 -0400 |
commit | 90e06162999c8ec7fa9bcfa391800f7907419d9b (patch) | |
tree | f0f8d4a760f25c4f7773e0a1851031db6b08b9f2 /app/Template/comment_show.php | |
parent | 180efb962c6fc4da47ed39e60db137d63ffaad5b (diff) |
Rename Locales and Templates folders to be more consistent
Diffstat (limited to 'app/Template/comment_show.php')
-rw-r--r-- | app/Template/comment_show.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app/Template/comment_show.php b/app/Template/comment_show.php new file mode 100644 index 00000000..b2ccc25a --- /dev/null +++ b/app/Template/comment_show.php @@ -0,0 +1,41 @@ +<div class="comment <?= isset($preview) ? 'comment-preview' : '' ?>" id="comment-<?= $comment['id'] ?>"> + + <p class="comment-title"> + <span class="comment-username"><?= Helper\escape($comment['name'] ?: $comment['username']) ?></span> @ <span class="comment-date"><?= dt('%B %e, %Y 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 ((! isset($not_editable) || ! $not_editable) && (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"> + <?php if (isset($is_public) && $is_public): ?> + <?= Helper\markdown( + $comment['comment'], + array( + 'controller' => 'task', + 'action' => 'readonly', + 'params' => array( + 'token' => $project['token'] + ) + ) + ) ?> + <?php else: ?> + <?= Helper\markdown($comment['comment']) ?> + <?php endif ?> + </div> + + </div> +</div>
\ No newline at end of file |