Fix bug.
This commit is contained in:
parent
c30bda01d2
commit
750b371737
|
@ -52,9 +52,9 @@ class Admin::GalleriesController < OrbitAdminController
|
||||||
text = album.tags.collect do |tag|
|
text = album.tags.collect do |tag|
|
||||||
"<li class=\"label\"> #{tag.name}</li>"
|
"<li class=\"label\"> #{tag.name}</li>"
|
||||||
end.join
|
end.join
|
||||||
render :text => text
|
render :plain => text
|
||||||
else
|
else
|
||||||
render :text => ''
|
render :plain => ''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def rotate_images
|
def rotate_images
|
||||||
|
@ -261,7 +261,7 @@ class Admin::GalleriesController < OrbitAdminController
|
||||||
variable.progress_filename = ''
|
variable.progress_filename = ''
|
||||||
variable.notalive = true
|
variable.notalive = true
|
||||||
variable.save!
|
variable.save!
|
||||||
render :text => ''
|
render :plain => ''
|
||||||
end
|
end
|
||||||
def recreate_progress
|
def recreate_progress
|
||||||
progress_percent = AlbumVariable.first.progress_percent rescue '0%'
|
progress_percent = AlbumVariable.first.progress_percent rescue '0%'
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Album
|
||||||
(tmp.blank? ? (AlbumSetting.first.resize_gravity.blank? ? "Center" : AlbumSetting.first.resize_gravity) : tmp) rescue 'Center'
|
(tmp.blank? ? (AlbumSetting.first.resize_gravity.blank? ? "Center" : AlbumSetting.first.resize_gravity) : tmp) rescue 'Center'
|
||||||
end
|
end
|
||||||
def self.find_by_param(input)
|
def self.find_by_param(input)
|
||||||
self.find_by(uid: input)
|
self.find_by(uid: input.to_s)
|
||||||
end
|
end
|
||||||
def self.filter_by_tags(tags=[])
|
def self.filter_by_tags(tags=[])
|
||||||
tags = OrbitHelper.page_tags if tags.blank?
|
tags = OrbitHelper.page_tags if tags.blank?
|
||||||
|
|
Loading…
Reference in New Issue