allow for the size of the images to be displayed

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@120 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-03 00:54:28 +00:00
parent f02f3ba8d7
commit e256253459
1 changed files with 4 additions and 3 deletions

View File

@ -140,8 +140,9 @@ module ApplicationHelper
##
# Link to open the dialog box for the tagged image browser.
#
def tagged_image_browser_link
link_to_function 'Tagged Images',
"lightboxes['tagged_image_browser'].open()"
def tagged_image_browser_link(obj = nil)
link_to_function('Tagged Images',
"lightboxes['tagged_image_browser'].open()") +
(obj ? " (#{obj.tagged_images.size})" : '')
end
end