holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21901: LJSUP-12032: Display social capital in t...

Committer: akanashin
LJSUP-12032: Display social capital in the contextual hover
U   trunk/htdocs/tools/endpoints/ctxpopup.bml
U   trunk/htdocs/tools/endpoints/ctxpopup.bml.text
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2012-05-05 08:09:49 UTC (rev 21900)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2012-05-05 08:10:29 UTC (rev 21901)
@@ -134,7 +134,7 @@
         if (ref $position eq 'HASH' && ( $u->journaltype eq 'C' || LJ::SUP->is_sup_enabled($u) )) {
             $first = $position->{result}->{position}!=0 ? 0 : 1;
             $soc_capital = int($position->{result}->{value}/1000);
-            $soc_capital = $soc_capital < 10 ? ' <10 ' : LJ::commafy($soc_capital);
+            $soc_capital = $soc_capital < 10 ? BML::ml('.social_capital_less_that') : LJ::commafy($soc_capital);
 
             $ret{first}  = $first; 
             $ret{value}  = $soc_capital;

Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml.text
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml.text	2012-05-05 08:09:49 UTC (rev 21900)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml.text	2012-05-05 08:10:29 UTC (rev 21901)
@@ -68,6 +68,9 @@
 .send_message|staleness=1
 .send_message=Send message
 
+.social_capital_less_that|staleness=1
+.social_capital_less_that=less that 10
+
 .stop_community|staleness=1
 .stop_community=Stop watching
 

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