bug affichage articles corrigé.
This commit is contained in:
parent
c03d47d355
commit
cb3101a8d8
@ -104,11 +104,10 @@ class Admin::ArticlesController < ApplicationController
|
|||||||
@articles = Article.order('published_at DESC')
|
@articles = Article.order('published_at DESC')
|
||||||
@articles = @articles.after(start) if start
|
@articles = @articles.after(start) if start
|
||||||
@articles = @articles.before(stop) if stop
|
@articles = @articles.before(stop) if stop
|
||||||
per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 5000
|
per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 30
|
||||||
page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
page = (params[:page] and params[:page] != "") ? params[:page] : 1
|
||||||
@articles = @articles.page(page).per(per_page)
|
@articles = @articles.page(page).per(per_page)
|
||||||
|
|
||||||
#@articles = Event.order('start_at, stop_at').after(start).before(stop)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Loading…
x
Reference in New Issue
Block a user