diff options
author | Joe Sak <joe@joesak.com> | 2010-09-21 22:48:53 -0500 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2010-09-21 22:48:53 -0500 |
commit | 17f529c8bf102d34a38661b04526305d7ef3acbd (patch) | |
tree | 4e9ae0cac8b79d446cc587384fd15a886f664269 /app/views/blog/posts | |
parent | 9fbeabbbca03ef246313b5e1651fdb1e1ef132cd (diff) | |
download | refinerycms-blog-17f529c8bf102d34a38661b04526305d7ef3acbd.tar.gz refinerycms-blog-17f529c8bf102d34a38661b04526305d7ef3acbd.tar.bz2 refinerycms-blog-17f529c8bf102d34a38661b04526305d7ef3acbd.zip |
More HTML5 and some show view formatting
Diffstat (limited to 'app/views/blog/posts')
-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> |