myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3526] trunk/app/helpers/application_helper.rb: F


From: noreply
Subject: [myexperiment-hackers] [3526] trunk/app/helpers/application_helper.rb: Fixed square avatar issue
Date: Thu, 2 May 2013 11:15:12 +0000 (UTC)

Revision
3526
Author
fbacall
Date
2013-05-02 11:15:12 +0000 (Thu, 02 May 2013)

Log Message

Fixed square avatar issue

Modified Paths

Diff

Modified: trunk/app/helpers/application_helper.rb (3525 => 3526)


--- trunk/app/helpers/application_helper.rb	2013-05-02 10:30:56 UTC (rev 3525)
+++ trunk/app/helpers/application_helper.rb	2013-05-02 11:15:12 UTC (rev 3526)
@@ -120,7 +120,8 @@
     end
     
     img = image_tag user.avatar? ? avatar_url(user.profile.picture_id, size) : "avatar.png",
-                    {:title => h(user.name), :class => 'framed', :size => "#{size}x#{size}"}.merge(image_options)
+                    {:title => h(user.name), :class => 'framed',
+                     :size => user.avatar? ? nil : "#{size}x#{size}"}.merge(image_options)
 
     unless url
       url = ""

reply via email to

[Prev in Thread] Current Thread [Next in Thread]