From 178d782743347993cfd13f5d15af6d391b11dafc Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Thu, 18 Nov 2010 11:25:24 -0600 Subject: time datetime was invalid for HTML5 - sorry details & aside added for category list blog_post class added to show view title put inside header empty title hidden on show --- app/views/blog/posts/show.html.erb | 20 ++++++++++---------- app/views/blog/shared/_post.html.erb | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 13 deletions(-) (limited to 'app/views') diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index 2c0cfec..f8d4b35 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -7,23 +7,23 @@ <% end %> <% end %> -<% content_for :body_content_title, @blog_post.title %> - <% content_for :body_content_left do %> -
+
-

- <%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>. - +

<%= @blog_post.title %>

+
+ <% if (categories = @blog_post.categories).any? %> - + <% end %> -

+
<%= @blog_post.body.html_safe %> @@ -91,5 +91,5 @@ <%= blog_archive_list %> <% end %> -<%= render :partial => "/shared/content_page" %> +<%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %> <% content_for :head, stylesheet_link_tag('refinerycms-blog') %> \ No newline at end of file diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 7982bd0..1e7830a 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -2,9 +2,19 @@

<%= link_to post.title, blog_post_url(post) %>

- +
+ + <% if (categories = post.categories).any? %> + + <% end %> +
<%= truncate(post.body, -- cgit v1.2.3