small fix again
This commit is contained in:
parent
40091d9683
commit
13e7720b3a
|
@ -4,12 +4,12 @@ class Admin::RegisteredSitesController < OrbitAdminController
|
|||
def index
|
||||
@registeredsites = RegisteredSite.all.order_by(sort)
|
||||
.with_categories(filters("category"))
|
||||
.with_tags(filters("tag"))
|
||||
.with_tags(filters("tag")).desc(:created_at)
|
||||
@table_fields = table_fields
|
||||
@tags = @module_app.tags
|
||||
@categories = @module_app.categories.enabled
|
||||
@filter_fields = filter_fields_without_status(@categories, @tags)
|
||||
@registeredsites = search_data(@registeredsites,[:title]).page(params[:page].per(10).desc(:created_at))
|
||||
@registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10)
|
||||
|
||||
if request.xhr?
|
||||
render :partial => "index"
|
||||
|
|
Loading…
Reference in New Issue