aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/blog/posts')
-rw-r--r--app/views/blog/posts/show.html.erb12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb
index 8124f73..8ced2e1 100644
--- a/app/views/blog/posts/show.html.erb
+++ b/app/views/blog/posts/show.html.erb
@@ -14,7 +14,7 @@
<header>
<p class='posted_at'>
<%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>.
-
+
<% if (categories = @blog_post.categories).any? %>
<span class='filed_in'>
<%= t('.filed_in') %>
@@ -26,11 +26,11 @@
</p>
</header>
<%=raw @blog_post.body %>
-
+
<% if BlogPost::ShareThis.enabled? %>
<span class="st_sharethis" displayText="ShareThis"></span>
<% end %>
- </article>
+ </article>
<% if BlogPost.comments_allowed? %>
<aside id="comments">
<h2><%= t('.comments.title') %></h2>
@@ -66,7 +66,11 @@
</div>
<div class='field'>
<%= f.label :email %>
- <%= f.email_field :email %>
+ <% if Rails.version > '3.0.0' %>
+ <%= f.email_field :email %>
+ <% else %>
+ <%= f.text_field :email %>
+ <% end %>
</div>
<div class='field message_field'>
<%= f.label :message %>