tags are now working for gallery
This commit is contained in:
parent
4d1ab7a226
commit
b6bb20d66a
|
@ -1,6 +1,6 @@
|
||||||
class GalleriesController < ApplicationController
|
class GalleriesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
albums = Album.filter_by_categories.asc(:order)
|
albums = Album.filter_by_categories.filter_by_tags.asc(:order)
|
||||||
galleries = albums.collect do |a|
|
galleries = albums.collect do |a|
|
||||||
alt_text = (a.description.nil? || a.description == "" ? "gallery image" : a.description)
|
alt_text = (a.description.nil? || a.description == "" ? "gallery image" : a.description)
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,8 @@ class GalleriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def widget
|
def widget
|
||||||
albums = Album.filter_by_widget_categories
|
tags = OrbitHelper.widget_tags.empty? ? ["all"] : OrbitHelper.widget_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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue