Skip to content

Commit

Permalink
Show 7 days worth of queued posts
Browse files Browse the repository at this point in the history
  • Loading branch information
gesteves committed Feb 16, 2019
1 parent 7cab8b0 commit 1312784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admin/entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def index
# GET /admin/entries/queued
def queued
@page = params[:page] || 1
@entries = @photoblog.entries.includes(photos: [:image_attachment, :image_blob]).queued.page(@page)
@count = @photoblog.publish_schedules_count * 7
@entries = @photoblog.entries.includes(photos: [:image_attachment, :image_blob]).queued.page(@page).per(@count)
@page_title = 'Queued'
end

Expand Down

0 comments on commit 1312784

Please sign in to comment.