ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r7227: LJSUP-3788: LJ.com statistics and raitin...

Committer: ssafronova
LJSUP-3788: LJ.com statistics and raitings - widget "top 10 users"

U   trunk/bin/upgrading/en_LJ.dat
U   trunk/htdocs/index.bml
U   trunk/htdocs/index.bml.sup
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2009-04-23 04:23:15 UTC (rev 7226)
+++ trunk/bin/upgrading/en_LJ.dat	2009-04-23 09:28:30 UTC (rev 7227)
@@ -5762,6 +5762,12 @@
 
 widget.qotd.title=Writer's Block
 
+widget.ratingtop10.all_comms=All communities
+
+widget.ratingtop10.all_users=All users
+
+widget.ratingtop10.header=Most popular users
+
 widget.recentposts.rssalt=RSS version
 
 widget.recentposts.title=Recent Public Posts

Modified: trunk/htdocs/index.bml
===================================================================
--- trunk/htdocs/index.bml	2009-04-23 04:23:15 UTC (rev 7226)
+++ trunk/htdocs/index.bml	2009-04-23 09:28:30 UTC (rev 7227)
@@ -117,6 +117,7 @@
         $ret .= LJ::Widget::FriendBirthdays->render;
 
         $ret .= LJ::Widget::OfficialJournals->render;
+        $ret .= LJ::Widget::RatingTop10->render;
         
         $ret .= LJ::CProd->full_box_for($remote, width => 300);
 
@@ -226,6 +227,8 @@
         $ret .= "</div></div></div></div>";
         $ret .= "</div><!-- end .homepage-stats -->\n";
 
+        $ret .= LJ::Widget::RatingTop10->render;
+
         $ret .= "</div><!-- end .homepage-loggedout -->\n";
     }
 

Modified: trunk/htdocs/index.bml.sup
===================================================================
--- trunk/htdocs/index.bml.sup	2009-04-23 04:23:15 UTC (rev 7226)
+++ trunk/htdocs/index.bml.sup	2009-04-23 09:28:30 UTC (rev 7227)
@@ -5,6 +5,8 @@
     use strict;
     use vars qw(%GET %POST $title $headextra @errors @warnings);
 
+    use LJ::Widget::RatingTop10;
+
     $headextra = LJ::need_res('stc/lj_base.css', 'stc/home.css','stc/lanzelot/css/index.bml.sup.css');
     $headextra .= qq{
     <meta name="description" content="$ML{'.meta.desc'}" />
@@ -30,7 +32,7 @@
     
     $headextra .= qq[<!--[if IE]><link rel="stylesheet" type="text/css" href="$LJ::STATPREFIX/stc/lanzelot/css/index.bml.sup.ie.css" /><![endif]-->];
         my $rating_posts = LJ::Widget::ExtBlock->render(id=>'rating.posts');
-        my $rating_users = LJ::Widget::ExtBlock->render(id=>'rating.users');
+        my $rating_users; $rating_users = LJ::Widget::ExtBlock->render(id=>'rating.users') if $LJ::DISABLED{'personal_stats'};
         my $real_time_sms= LJ::Widget::ExtBlock->render(id=>'realtime.sms');
         my $info_box     = ($remote and $remote->get_cap('paid')) 
                         ? ''
@@ -136,7 +138,8 @@
        
         $ret .= $real_time_sms;
         
-        $ret .= "<div class='promo-block no-widget-div'>
+         if ($LJ::DISABLED{'personal_stats'}) {
+            $ret .= "<div class='promo-block no-widget-div'>
                         <span class='header'>Рейтинги</span>
                         <div>
                                                         <table class='small-stat'>
@@ -156,6 +159,9 @@
                                                         </table>
                         </div>
                 </div>";
+         } else { # enabled
+             $ret .= LJ::Widget::RatingTop10->render;
+         }
 
         $ret .= LJ::Widget::OfficialJournals->render;
         
@@ -228,6 +234,9 @@
 
                 $real_time_sms
 
+END_OF_HTML
+         if ($LJ::DISABLED{'personal_stats'} ) {
+             $ret .= << "END_OF_HTML";
                         <div class="promo-block no-widget-div">
                                 <span class="header">Рейтинги</span>
                                 <div>
@@ -249,6 +258,11 @@
 
                                 </div>
                         </div>
+END_OF_HTML
+         } else { # enabled
+             $ret .= LJ::Widget::RatingTop10->render;
+         }
+             $ret .= << "END_OF_HTML";
                 
                 </div> <!-- / side -->
         </div><!--body-->

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