diff options
Diffstat (limited to 'app/views/blog')
-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> |