ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

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

Committer: ssafronova
LJSUP-3788: LJ.com statistics and raitings - widget with posts rating at main page

U   trunk/htdocs/index.bml
U   trunk/htdocs/index.bml.sup
Modified: trunk/htdocs/index.bml
===================================================================
--- trunk/htdocs/index.bml	2009-04-23 09:28:30 UTC (rev 7227)
+++ trunk/htdocs/index.bml	2009-04-23 11:09:38 UTC (rev 7228)
@@ -5,6 +5,8 @@
     use strict;
     use vars qw(%GET %POST $title $headextra @errors @warnings);
 
+    use LJ::PersonalStats;
+
     $headextra = LJ::need_res('stc/lj_base.css', 'stc/home.css');
     $headextra .= LJ::need_res('stc/home-halloween08.css') if LJ::is_enabled("halloween08_display");
     $headextra .= qq{
@@ -122,6 +124,7 @@
         $ret .= LJ::CProd->full_box_for($remote, width => 300);
 
         $ret .= "</div>";
+        $ret .= LJ::PersonalStats->get_result_html($remote, { widget => 1 }, '/ratings/posts/') unless $LJ::DISABLED{'personal_stats'};
         $ret .= "</div><!-- end .homepage-loggedin  -->";
         $ret .= "<div class='homepage-loggedin-frank'>";
         $ret .= LJ::Widget::Frank->render( image => $goat_img );
@@ -230,6 +233,7 @@
         $ret .= LJ::Widget::RatingTop10->render;
 
         $ret .= "</div><!-- end .homepage-loggedout -->\n";
+        $ret .= LJ::PersonalStats->get_result_html($remote, { widget => 1 }, '/ratings/posts/') unless $LJ::DISABLED{'personal_stats'};
     }
 
     return $ret;

Modified: trunk/htdocs/index.bml.sup
===================================================================
--- trunk/htdocs/index.bml.sup	2009-04-23 09:28:30 UTC (rev 7227)
+++ trunk/htdocs/index.bml.sup	2009-04-23 11:09:38 UTC (rev 7228)
@@ -168,6 +168,7 @@
         $ret .= LJ::CProd->full_box_for($remote, width => 300);
 
         $ret .= "</div>";
+        $ret .= LJ::PersonalStats->get_result_html($remote, { widget => 1 }, '/ratings/posts/') unless $LJ::DISABLED{'personal_stats'};
         $ret .= "</div><!-- end .homepage-loggedin  -->";
 
 #        $ret .= "<div class='homepage-loggedin-frank'>";
@@ -262,13 +263,9 @@
          } else { # enabled
              $ret .= LJ::Widget::RatingTop10->render;
          }
-             $ret .= << "END_OF_HTML";
-                
-                </div> <!-- / side -->
-        </div><!--body-->
-
-END_OF_HTML
-        
+             $ret .= '</div> <!-- / side -->';
+             $ret .= LJ::PersonalStats->get_result_html($remote, { widget => 1 }, '/ratings/posts/') unless $LJ::DISABLED{'personal_stats'};
+             $ret .= '</div><!--body-->';
     }
 
     return $ret;

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