Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r20276: LJSUP-9996: Update default userpic for c...

Committer: amyshkin
LJSUP-9996: Update default userpic for community in contextual popup
U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-10-11 07:13:31 UTC (rev 20275)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-10-11 07:18:23 UTC (rev 20276)
@@ -87,22 +87,31 @@
         $ret{url_userpic} = $up->url;
         $ret{userpic_w}   = $up->width;
         $ret{userpic_h}   = $up->height;
-    } else {
+    }
+    else {
         # if it's a feed, make their userpic the feed icon
         if ($u->is_syndicated) {
             $ret{url_userpic} = "$LJ::IMGPREFIX/feed100x100.png";
-        } elsif ($u->is_identity) {
+        }
+        elsif ($u->is_identity) {
             ## show OpedID placeholder for OpenID accounts, and
             ## default placeholder for all the rest identities (Facebook, Twitter etc)
             my $identity = $u->identity;
+
             if ($identity && $identity->isa("LJ::Identity::OpenID")) {
                 $ret{url_userpic} = "$LJ::IMGPREFIX/identity_100x100.png";
-            } else {
+            }
+            else {
                 $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif";
             }
-        } else {
+        }
+        elsif ( $u->is_comm ) {
+            $ret{'url_userpic'} = "$LJ::IMGPREFIX/profile_icons/comm.gif";
+        }
+        else {
             $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif";
         }
+
         $ret{userpic_w} = 100;
         $ret{userpic_h} = 100;
     }

Tags: amyshkin, bml, livejournal, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments