aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-11-03 11:49:46 +1300
committerPhilip Arndt <parndt@gmail.com>2010-11-03 11:49:46 +1300
commit227e1b37ebb6f5e557862dc3a8c3fc07bcedd2dd (patch)
tree4d9e08a6d9625dc6a3c97fc61a78e0143313d103
parentb96e2725c86ef20476994ae9b277d26d5075f46a (diff)
downloadrefinerycms-blog-227e1b37ebb6f5e557862dc3a8c3fc07bcedd2dd.tar.gz
refinerycms-blog-227e1b37ebb6f5e557862dc3a8c3fc07bcedd2dd.tar.bz2
refinerycms-blog-227e1b37ebb6f5e557862dc3a8c3fc07bcedd2dd.zip
We can't use email_field < Rails 3.
-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 %>