diff --git a/.sass-cache/b118d4c1b1aae4efe3003ca592302b34dd7f51b1/default.scssc b/.sass-cache/b118d4c1b1aae4efe3003ca592302b34dd7f51b1/default.scssc deleted file mode 100644 index 4ad796715..000000000 Binary files a/.sass-cache/b118d4c1b1aae4efe3003ca592302b34dd7f51b1/default.scssc and /dev/null differ diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 246fcb8bc..b81d78cbc 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -1,5 +1,6 @@ class CommentsController < ApplicationController respond_to :html, :xml, :json + before_filter :member_only, :only => [:update, :create] def index @posts = Post.commented_before(params[:before_date] || Time.now).limit(8) diff --git a/app/presenters/paginators/post_version.rb b/app/presenters/paginators/post_version.rb new file mode 100644 index 000000000..c18a5177b --- /dev/null +++ b/app/presenters/paginators/post_version.rb @@ -0,0 +1,18 @@ +module Paginators + class PostVersion < Base + attr_accessor :post_set + + def initialize(post_set) + @post_set = post_set + end + + def numbered_pagination_html(template) + raise NotImplementedError + end + + protected + def sequential_link(template) + template.post_versions_path(:before_time => post_set.posts[-1].last_commented_at, :page => nil) + end + end +end diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 7ea086e98..685b63ea4 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -6,7 +6,7 @@ <% end %> -