Gut the comment module and simplify it. Stop trying to support Atom

and XML for now, we have no driver for those technologies so anything
we implement is not going to be sufficiently tested and therefore
it'll be broken.

Change all comment functions to return JSON and update the JS to deal
purely with JSON.  This is our new protocol for talking to the browser
and it should be flexible and portable.

Create comments.html.php.  This duplicates comment.html.php, but will
be more efficient for rendering comments since we won't be creating a
new View for every comment we render.
This commit is contained in:
Bharat Mediratta
2008-12-25 00:47:40 +00:00
parent 7a82beb752
commit 0bb82b7621
6 changed files with 90 additions and 201 deletions

View File

@@ -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 ?>