app/views/refinery/blog/posts/_post.html.erb in refinerycms-blog-3.0.2 vs app/views/refinery/blog/posts/_post.html.erb in refinerycms-blog-4.0.0
- old
+ new
@@ -1,25 +1,25 @@
<% flash.each do |key, value| %>
- <div id='flash' class="flash flash_<%= key %>">
+ <div id="flash" class="flash flash_<%= key %>">
<%= value %>
</div>
<% end %>
-<article id="blog_post">
+<article class="blog_post">
<header>
<h1><%= @post.title %></h1>
- <section class='details'>
- <time datetime="<%=l @post.published_at.to_date, :format => :default %>" class='posted_at'>
+ <section class="details">
+ <time datetime="<%=l @post.published_at.to_date, :format => :default %>" class="posted_at">
<%= t('created_at', :scope => 'refinery.blog.shared.posts', :when => l(@post.published_at.to_date, :format => :short)) %>
</time>
- <%= content_tag(:div, "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.username}", :class => "blog_author") if @post.author.present? %>
+ <%= content_tag(:div, "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author_username}", :class => "blog_author") if @post.author_username.present? %>
<% if @post.source_url.present? %>
- <div class='blog_source'>
+ <div class="blog_source">
<%= "#{t('source', :scope => 'refinery.blog.posts.show')}: " %>
<%= link_to (@post.source_url_title.blank? ? @post.source_url : @post.source_url_title), @post.source_url %>
</div>
<% end %>
<% if (categories = @post.categories).any? %>
- <aside class='filled_in'>
+ <aside class="filled_in">
<%= t('filled_in', :scope => 'refinery.blog.posts.show') %>
<% categories.each_with_index do |category, index| %>
<%= link_to category.title, refinery.blog_category_path(category) -%><%= ',' if index < ((categories.length) - 1) %>
<% end %>
</aside>