diff options
Diffstat (limited to 'app/views/blog/posts/_comment.html.erb')
-rw-r--r-- | app/views/blog/posts/_comment.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/blog/posts/_comment.html.erb b/app/views/blog/posts/_comment.html.erb new file mode 100644 index 0000000..559757b --- /dev/null +++ b/app/views/blog/posts/_comment.html.erb @@ -0,0 +1,9 @@ +<div class='blog_comment_message' id='<%= "comment-#{comment.to_param}" %>'> + <p> + <%= comment.message.to_s.gsub("\r\n\r\n", "</p><p>").gsub("\r\n", "<br/>") %> + </p> +</div> +<p class='blog_comment_author'> + <%= t('.by', :who => comment.name) %> + <%= t('.time_ago', :time => time_ago_in_words(comment.created_at)) %> +</p>
\ No newline at end of file |