From 27bfd2f086c2906f5b0d9d83ff843f11443186b1 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 9 Feb 2008 17:57:37 +0000 Subject: [PATCH] ActionItem41: adding helper to display faces and names with links to homepage --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 144240e..23060c3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -367,4 +367,8 @@ module ApplicationHelper image_tag(profile.image.public_filename(:thumb)) if profile.image end + def profile_image_link(profile) + link_to(profile_image(profile) + tag('br') + profile.name, profile.url) + end + end -- libgit2 0.21.2