diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 08:05:21 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 08:12:50 -0800 |
commit | 4c3b9e363ab1501bf3169d92f5606abf464c2d5e (patch) | |
tree | 1be0d88b900558895b0e7e1bb5f513fbff6b1348 /modules/comment/views | |
parent | 82ee5f9d338017c69331b2907f37a468ced8c66e (diff) |
Refactor the comment module as part of ticket: #917 "Remove Rest Controller"
* Remove the methods create, update, delete, get_edit_form as there are not used
* Change the return when a comment is created to return the html for the new comment.
This saves a second get request to down load the comment.
Diffstat (limited to 'modules/comment/views')
-rw-r--r-- | modules/comment/views/comment.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php index c7957c15..2c485b53 100644 --- a/modules/comment/views/comment.html.php +++ b/modules/comment/views/comment.html.php @@ -8,9 +8,9 @@ width="40" height="40" /> </a> - <?= t("on %date_time, %author_name said", + <?= t("on %date_time, <a href=\"#\">%name</a> said", array("date_time" => gallery::date_time($comment->created), - "author_name" => html::clean($comment->author_name()))) ?> + "name" => html::clean($comment->author_name()))) ?> </p> <div> <?= nl2br(html::purify($comment->text)) ?> |