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 | |
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
-rw-r--r-- | app/views/blog/categories/show.html.erb | 4 | ||||
-rw-r--r-- | app/views/blog/posts/_comment.html.erb | 16 |
2 files changed, 11 insertions, 9 deletions
diff --git a/app/views/blog/categories/show.html.erb b/app/views/blog/categories/show.html.erb index bd9f863..3b4a966 100644 --- a/app/views/blog/categories/show.html.erb +++ b/app/views/blog/categories/show.html.erb @@ -2,9 +2,9 @@ <% content_for :body_content_left do %> <% if @category.posts.any? %> - <ul id="blog_posts"> + <article id="blog_posts"> <%= render :partial => "/blog/shared/post", :collection => @category.posts %> - </ul> + </article> <% else %> <p> <%= t('.no_posts') %> 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> |