holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21094: LJSUP-10988: Add position and social cap...

Committer: akanashin
LJSUP-10988: Add position and social capital to user profile
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-02-03 14:13:58 UTC (rev 21093)
+++ trunk/htdocs/userinfo.bml	2012-02-03 14:15:00 UTC (rev 21094)
@@ -663,10 +663,11 @@
             type => 0,
             sup => 1,
         });
+        my $href_rating = $u->journaltype eq 'C' ? 'ljcom.userinfo.community_rating' : 'ljcom.userinfo.account_rating';
         if (ref $position eq 'HASH') {
             if ($position->{result}->{position} < 2000) {
                 $body .= "<p class='details-rating'><img src='$LJ::IMGPREFIX/profile_icons/diagram.png'/> " . 
-                         LJ::Lang::ml('ljcom.userinfo.account_rating', { rating_place => LJ::commafy(++$position->{result}->{position}), 
+                         LJ::Lang::ml($href_rating, { rating_place => LJ::commafy(++$position->{result}->{position}), 
                                                                          url_user_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users'), 
                                                                          soc_capital => LJ::commafy(int($position->{result}->{value}/1000)),}) . 
                         "<a href='http://www.livejournal.com/admin/faq/faqedit.bml?id=359'> " . LJ::help_icon_html("profile_faq") . "</a>" .

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