From e2562534597f1303b91f16b82bebbc625a613699 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 3 Feb 2008 00:54:28 +0000 Subject: [PATCH] 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 --- app/helpers/application_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a083729..3566a1b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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