auto indent

This commit is contained in:
EricTYL 2019-11-05 14:07:59 +08:00
parent 710661a3fb
commit 809a9fa3b9
1 changed files with 57 additions and 56 deletions

View File

@ -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