Merge branch 'master' into 'master'
# Conflicts: # app/controllers/galleries_controller.rb
This commit is contained in:
commit
e76fb42be6
|
@ -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|
|
||||||
|
@ -60,6 +61,7 @@ class GalleriesController < ApplicationController
|
||||||
albums = Album.filter_by_widget_categories.filter_by_tags(tags)
|
albums = Album.filter_by_widget_categories.filter_by_tags(tags)
|
||||||
params = OrbitHelper.params
|
params = OrbitHelper.params
|
||||||
counts = OrbitHelper.widget_data_count
|
counts = OrbitHelper.widget_data_count
|
||||||
|
|
||||||
images = []
|
images = []
|
||||||
total_images = 0
|
total_images = 0
|
||||||
if !albums.blank?
|
if !albums.blank?
|
||||||
|
@ -127,7 +129,9 @@ class GalleriesController < ApplicationController
|
||||||
}
|
}
|
||||||
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