holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21799: LJSUP-11397: Display top 5000 users and ...

Committer: akanashin
LJSUP-11397: Display top 5000 users and communities in the top
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-04-25 14:36:04 UTC (rev 21798)
+++ trunk/htdocs/userinfo.bml	2012-04-26 06:54:43 UTC (rev 21799)
@@ -693,8 +693,8 @@
 
         if (ref $position eq 'HASH') {
                 $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($position->{result}->{position}!=0 ? 'social-capital.png?v=17298' : 'korona.png?v=17319') . "'/>";
-                $soc_capital = LJ::commafy(int($position->{result}->{value}/1000));
-                $soc_capital = $soc_capital < 0.1 ? ' < 10 ' : $soc_capital;
+                $soc_capital = int($position->{result}->{value}/1000);
+                $soc_capital = $soc_capital < 10 ? ' < 10 ' : LJ::commafy($soc_capital);
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
                          LJ::Lang::ml($href_rating, {rating_place => LJ::commafy($position->{result}->{position}+1),
@@ -704,8 +704,8 @@
         }
         if (ref $ua_position eq 'HASH') {
                 $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($ua_position->{result}->{position}!=0 ? 'social-capital.png?v=17298' : 'korona.png?v=17319') . "'/>";
-                $soc_capital = LJ::commafy(int($ua_position->{result}->{value}/1000));
-                $soc_capital = $soc_capital < 0.1 ? ' < 10 ' : $soc_capital;
+                $soc_capital = int($position->{result}->{value}/1000);
+                $soc_capital = $soc_capital < 10 ? ' < 10 ' : LJ::commafy($soc_capital);
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
                          LJ::Lang::ml($ua_href_rating, {rating_place => LJ::commafy($ua_position->{result}->{position}+1),

Tags: akanashin, bml, holyandrew, livejournal
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