diff --git a/app/controllers/blog/categories_controller.rb b/app/controllers/blog/categories_controller.rb
index 71ceec1..4795e99 100644
--- a/app/controllers/blog/categories_controller.rb
+++ b/app/controllers/blog/categories_controller.rb
@@ -3,5 +3,5 @@ class Blog::CategoriesController < BlogController
def show
@category = BlogCategory.find(params[:id])
end
-
-end
\ No newline at end of file
+
+end
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb
index 95ccbbe..8dd8ada 100644
--- a/app/controllers/blog/posts_controller.rb
+++ b/app/controllers/blog/posts_controller.rb
@@ -1,8 +1,8 @@
class Blog::PostsController < BlogController
-
+
before_filter :find_all_blog_posts, :except => [:archive]
before_filter :find_blog_post, :only => [:show, :comment, :update_nav]
-
+
respond_to :html, :js, :rss if Rails.version >= '3.0.0'
def index
@@ -18,7 +18,7 @@ class Blog::PostsController < BlogController
def show
@blog_comment = BlogComment.new
-
+
if Rails.version < '3.0.0'
# TODO: respond_to block
else
@@ -55,7 +55,7 @@ class Blog::PostsController < BlogController
render :action => 'show'
end
end
-
+
def archive
date = "#{params[:month]}/#{params[:year]}"
@archive_date = Time.parse(date)
diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb
index 2efeaa4..f51d5bb 100644
--- a/app/controllers/blog_controller.rb
+++ b/app/controllers/blog_controller.rb
@@ -1,5 +1,5 @@
class BlogController < ApplicationController
-
+
helper :blog_posts
before_filter :find_page, :find_all_blog_categories
@@ -13,4 +13,4 @@ protected
@blog_categories = BlogCategory.all
end
-end
\ No newline at end of file
+end
diff --git a/app/helpers/blog_posts_helper.rb b/app/helpers/blog_posts_helper.rb
index a74ec33..e690a51 100644
--- a/app/helpers/blog_posts_helper.rb
+++ b/app/helpers/blog_posts_helper.rb
@@ -4,10 +4,10 @@ module BlogPostsHelper
return nil if posts.blank?
html = '
Archives
'
html.html_safe
end
-
+
def next_or_previous?(post)
post.next.present? or post.prev.present?
end
diff --git a/app/models/blog/comment_mailer.rb b/app/models/blog/comment_mailer.rb
index dac526d..acef313 100644
--- a/app/models/blog/comment_mailer.rb
+++ b/app/models/blog/comment_mailer.rb
@@ -1 +1 @@
-require File.expand_path('../../../mailers/blog/comment_mailer', __FILE__)
\ No newline at end of file
+require File.expand_path('../../../mailers/blog/comment_mailer', __FILE__)
diff --git a/app/models/blog_category.rb b/app/models/blog_category.rb
index c78a7a4..89bff27 100644
--- a/app/models/blog_category.rb
+++ b/app/models/blog_category.rb
@@ -8,16 +8,16 @@ class BlogCategory < ActiveRecord::Base
validates_uniqueness_of :title
has_friendly_id :title, :use_slug => true
-
+
# this might be able to be optimised a little more
def post_count
count = 0
-
+
self.posts.each do |p|
count += 1 if p.live?
end
-
+
count
end
-
+
end
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb
index 7a4af50..63f9731 100644
--- a/app/models/blog_comment.rb
+++ b/app/models/blog_comment.rb
@@ -119,4 +119,4 @@ class BlogComment < ActiveRecord::Base
end
end
-end
\ No newline at end of file
+end
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb
index 6f27722..dcf2f4e 100644
--- a/app/views/admin/blog/_submenu.html.erb
+++ b/app/views/admin/blog/_submenu.html.erb
@@ -86,4 +86,4 @@
<% end %>
<% else %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog')%>
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/app/views/admin/blog/categories/_form.html.erb b/app/views/admin/blog/categories/_form.html.erb
index 247f31b..28227ae 100644
--- a/app/views/admin/blog/categories/_form.html.erb
+++ b/app/views/admin/blog/categories/_form.html.erb
@@ -8,7 +8,7 @@
:include_object_name => true
} %>
<% end %>
-
+
<%= f.label :title -%>
<%= f.text_field :title, :class => 'larger widest' -%>
@@ -20,4 +20,4 @@
:continue_editing => false,
:delete_title => t('admin.blog.categories.category.delete')
} %>
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/app/views/admin/blog/categories/edit.html.erb b/app/views/admin/blog/categories/edit.html.erb
index 42509a2..2872e82 100644
--- a/app/views/admin/blog/categories/edit.html.erb
+++ b/app/views/admin/blog/categories/edit.html.erb
@@ -1 +1 @@
-<%= render :partial => "form" %>
\ No newline at end of file
+<%= render :partial => "form" %>
diff --git a/app/views/admin/blog/categories/index.html.erb b/app/views/admin/blog/categories/index.html.erb
index 9bd50a8..d9ccae6 100644
--- a/app/views/admin/blog/categories/index.html.erb
+++ b/app/views/admin/blog/categories/index.html.erb
@@ -27,4 +27,4 @@
<% end %>
<% end %>
-