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