auto indent
This commit is contained in:
parent
710661a3fb
commit
809a9fa3b9
|
@ -17,6 +17,7 @@ class GalleriesController < ApplicationController
|
||||||
tags << tag0
|
tags << tag0
|
||||||
tags << tag1
|
tags << tag1
|
||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
albums = Album.filter_by_categories.filter_by_tags.asc(:order)
|
albums = Album.filter_by_categories.filter_by_tags.asc(:order)
|
||||||
galleries = albums.collect do |a|
|
galleries = albums.collect do |a|
|
||||||
|
@ -35,7 +36,6 @@ class GalleriesController < ApplicationController
|
||||||
"extras" => {"widget-title"=>"Gallery"},
|
"extras" => {"widget-title"=>"Gallery"},
|
||||||
"total_pages" => albums.total_pages
|
"total_pages" => albums.total_pages
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@ -131,10 +131,11 @@ class GalleriesController < ApplicationController
|
||||||
"image" => image.id.to_s,
|
"image" => image.id.to_s,
|
||||||
"images" => imgs(albumid)
|
"images" => imgs(albumid)
|
||||||
}
|
}
|
||||||
|
|
||||||
render :json => {"data" => data}.to_json
|
render :json => {"data" => data}.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def show_desc?
|
def show_desc?
|
||||||
tags = OrbitHelper.page_tags if tags.blank?
|
tags = OrbitHelper.page_tags if tags.blank?
|
||||||
tags = [tags].flatten.uniq
|
tags = [tags].flatten.uniq
|
||||||
|
|
Loading…
Reference in New Issue