Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

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

Committer: mchervonniy
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-01-31 14:21:02 UTC (rev 21053)
+++ trunk/htdocs/userinfo.bml	2012-01-31 15:09:07 UTC (rev 21054)
@@ -669,11 +669,11 @@
         });
         if (ref $position eq 'HASH') {
             if ($position->{result}->{position} < 2000) {
-                $body .= "<br>" . 
+                $body .= "<p class='details-rating'><img src='$LJ::IMGPREFIX/profile_icons/diagram.png'/> " . 
                          LJ::Lang::ml('ljcom.userinfo.account_rating', { rating_place => $position->{result}->{position}, 
                                                                          url_user_rating => '/ratings/users/friends_of', 
                                                                          soc_capital => $position->{result}->{value}}) . 
-                        "<br>";
+                        "</p>";
             }
         }
     }
@@ -708,28 +708,26 @@
         $ct_str = "0";
     }
 
-    push @view_links_l, BML::ml('.details.entries3', { num_raw => $entry_count, num_comma => LJ::commafy($entry_count), aopts => "href='" . $u->journal_base . "'" })
+    push @view_links_l, '<li>' . BML::ml('.details.entries3', { num_raw => $entry_count, num_comma => LJ::commafy($entry_count), aopts => "href='" . $u->journal_base . "'" }) . '</li>'
         unless $u->is_identity;
-    push @view_links_l, "$num_comments_received comments recieved";
-    push @view_links_l, "$num_comments_posted comments posted";
-    push @view_links_l, BML::ml('.details.tags2', { num_raw => $tagcount, num_comma => LJ::commafy($tagcount), aopts => "href='" . $u->journal_base . "/tag/'" })
+    push @view_links_l, '<li>' . "$num_comments_received comments recieved" . '</li>';
+    push @view_links_l, '<li>' . "$num_comments_posted comments posted" . '</li>';
+    push @view_links_l, '<li>' . BML::ml('.details.tags2', { num_raw => $tagcount, num_comma => LJ::commafy($tagcount), aopts => "href='" . $u->journal_base . "/tag/'" }) . '</li>'
         unless $u->is_identity || $u->is_syndicated;
-    push @view_links_r, BML::ml('.details.memories2', { num_raw => $memcount, num_comma => LJ::commafy($memcount), aopts => "href='$LJ::SITEROOT/tools/memories.bml?user=$user'" })
+    push @view_links_r, '<li>' . BML::ml('.details.memories2', { num_raw => $memcount, num_comma => LJ::commafy($memcount), aopts => "href='$LJ::SITEROOT/tools/memories.bml?user=$user'" }) . '</li>'
         unless $u->is_syndicated;
-    push @view_links_r, BML::ml('.details.fotobilder2', { num => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" })
+    push @view_links_r, '<li>' . BML::ml('.details.fotobilder2', { num => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" }) . '</li>'
         if $ct_str;
-    push @view_links_r, BML::ml('.details.userpics', { num_raw => $userpiccount, num_comma => LJ::commafy($userpiccount), aopts => "href='$LJ::SITEROOT/allpics.bml?user=$user'" })
+    push @view_links_r, '<li>' . BML::ml('.details.userpics', { num_raw => $userpiccount, num_comma => LJ::commafy($userpiccount), aopts => "href='$LJ::SITEROOT/allpics.bml?user=$user'" }) . '</li>'
         unless $u->is_syndicated;
 
     LJ::run_hook("userinfo_modify_view_links", user => $u, viewlinksref => \@view_links_r);
 
     #my @details_links = $ML{'.details.viewlinkssep'};
     $body .= "<div class='details_links'>";
-    $body .= "<p>" . join ( ' ', @view_links_l) . "</p>";
-    $body .= "</div>";
+    $body .= "<ul>" . join ( ' ', @view_links_l) . "</ul>";
 
-    $body .= "<div class='details_links'>";
-    $body .= "<p>" . join ( ' ', @view_links_r) . "</p>";
+    $body .= "<ul>" . join ( ' ', @view_links_r) . "</ul>";
     $body .= "</div>";
     {
         my $userinfo_add = '';

Tags: bml, fiskus_boulder, livejournal, mchervonniy
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