summaryrefslogtreecommitdiff
path: root/modules/comment/views
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/views')
-rw-r--r--modules/comment/views/comment.html.php3
-rw-r--r--modules/comment/views/comments.html.php14
2 files changed, 15 insertions, 2 deletions
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index 4cd1663c..19886d28 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -2,8 +2,7 @@
<li id="gComment-<?= $comment->id; ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
- <?= comment::format_elapsed_time($comment->created) ?>,
- <span class="gUnderstate"><?= strftime('%c', $comment->created) ?></span>
+ <?= date("Y-M-d H:i:s", $comment->created) ?>
</p>
<div>
<?= $comment->text ?>
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
new file mode 100644
index 00000000..f4b3d6dc
--- /dev/null
+++ b/modules/comment/views/comments.html.php
@@ -0,0 +1,14 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul>
+ <? foreach ($comments as $comment): ?>
+ <li id="gComment-<?= $comment->id; ?>">
+ <p>
+ <a href="#" class="gAuthor"><?= $comment->author ?></a>
+ <?= date("Y-M-d H:i:s", $comment->created) ?>
+ </p>
+ <div>
+ <?= $comment->text ?>
+ </div>
+ </li>
+ <? endforeach ?>
+</ul>