diff options
Diffstat (limited to 'app/views/blog/posts/_comment.html.erb')
-rw-r--r-- | app/views/blog/posts/_comment.html.erb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/views/blog/posts/_comment.html.erb b/app/views/blog/posts/_comment.html.erb index 7b22f3c..71eab30 100644 --- a/app/views/blog/posts/_comment.html.erb +++ b/app/views/blog/posts/_comment.html.erb @@ -1,9 +1,11 @@ -<div class='blog_comment_message' id='<%= "comment-#{comment.to_param}" %>'> +<article 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/>") %> + <%= simple_format auto_link(comment.message.to_s) %> </p> -</div> -<p class='blog_comment_author'> - <%= t('blog.posts.comments.by', :who => comment.name) %>, - <%= t('blog.posts.comments.time_ago', :time => time_ago_in_words(comment.created_at)) %> -</p>
\ No newline at end of file + <footer class='blog_comment_author'> + <p> + <%= t('blog.posts.comments.by', :who => comment.name) %>, + <%= t('blog.posts.comments.time_ago', :time => time_ago_in_words(comment.created_at)) %> + </p> + </footer> +</article> |