allow for the size of the images to be displayed
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@120 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
f02f3ba8d7
commit
e256253459
|
@ -140,8 +140,9 @@ module ApplicationHelper
|
||||||
##
|
##
|
||||||
# Link to open the dialog box for the tagged image browser.
|
# Link to open the dialog box for the tagged image browser.
|
||||||
#
|
#
|
||||||
def tagged_image_browser_link
|
def tagged_image_browser_link(obj = nil)
|
||||||
link_to_function 'Tagged Images',
|
link_to_function('Tagged Images',
|
||||||
"lightboxes['tagged_image_browser'].open()"
|
"lightboxes['tagged_image_browser'].open()") +
|
||||||
|
(obj ? " (#{obj.tagged_images.size})" : '')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue