Changeset 14059

Show
Ignore:
Timestamp:
07/16/08 00:15:46 (5 years ago)
Author:
janine
Message:

[int: commitback from r14054]

Location:
branches/r34/htdocs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/r34/htdocs/stc/profile.css

    r14058 r14059  
    7070    font-weight: bold; 
    7171    text-align: right; 
    72     white-space: nowrap; 
    7372} 
     73 
     74td.friendlist-header { 
     75    width: 180px; 
     76} 
  • branches/r34/htdocs/userinfo_2008.bml

    r14057 r14059  
    424424        } 
    425425    } 
    426     push @ret, "<span class='btn'><a href='$url'><img src='$btn' width='22' height='20' alt='$label' title='$label'  /></a><a href='$url'>$text</a></span>"; 
     426    push @ret, "<span class='btn'><a href='$url'><img src='$btn' width='22' height='20' alt='$label' title='$label'  /></a><a href='$url'>$text</a></span>" 
     427        if $remote; 
    427428 
    428429    if ($pm->remote_can_post) { 
     
    661662     # Comments 
    662663     $body .= "<br />$com_got comments received"; 
    663      $body .= " | $com_post posted" unless ($com || $synd); 
     664     $body .= ", $com_post comments posted" unless ($com || $synd); 
    664665     $body .= "<br />"; 
    665666 
     
    11541155         my $label; 
    11551156         if ($u->show_mutualfriends && (my $n_friends = $fro_m->mutual_friends)) { 
    1156              $label = $ML{'.label.mutual'}; 
     1157             $label = "Mutual Friends"; 
    11571158             my $count = 1; 
    11581159             my $bold_mutual = ! LJ::u_equals($remote, $u); 
     
    11701171             } 
    11711172             chop $list; chop $list; 
    1172              $mutual .= "<tr><td align='right' valign='top'><b style='white-space: nowrap;'>"; 
    1173              $mutual .= "$label ($n_friends)</td>"; 
     1173             $mutual .= "<tr><td class='friendlist-header label' valign='top'>"; 
     1174             $mutual .= "$label ($n_friends):</td>"; 
    11741175             $mutual .= "<td valign='top'>$list"; 
    11751176             $mutual .= ", <a href='?mode=full'>...</a>" if $clipped; 
     
    11771178         } 
    11781179         if ($friendsof{'display'} && (my $n_friends = $fro_m->friend_ofs)) { 
    1179              $label = $com ? $ML{'.friendof.comm'} : 
    1180                       ($u->show_mutualfriends ? $ML{'.label.alsofriendof'} : $ML{'.friendof.user'}); 
     1180             $label = $com ? "Watched by" : 
     1181                      ($u->show_mutualfriends ? "Also Friend of" : "Friend of"); 
    11811182             my $count = 1; 
    11821183             my $clipped = 0; # bool 
     
    11991200             } 
    12001201             chop $list; chop $list; 
    1201              $fofs .= "<tr><td align='right' valign='top' style='white-space: nowrap; font-weight: bold;'>$label ($n_friends)"; 
     1202             $fofs .= "<tr><td class='friendlist-header label' valign='top'>$label ($n_friends):"; 
    12021203             if ($u->{'opt_hidefriendofs'}) { 
    12031204                 $fofs  .= "<br /><i>$ML{'.friendof.hidden'}</i>"; 
     
    12091210         } 
    12101211         if ($friendsof{'display'} && (my $n_friends = $fro_m->member_of)) { 
    1211              $label = $ML{'.label.memberof'}; 
     1212             $label = "Member of"; 
    12121213             my @memberof = $fro_m->member_of; 
    12131214             my @alt_memberof; 
     
    12211222             } 
    12221223             chop $list; chop $list; 
    1223              $mofs .= "<tr><td valign='top' style='white-space: nowrap; font-weight: bold; text-align: right;'>$label </td><td><span style='font-weight: bold;'>(" . scalar @memberof . ")</span>$list"; 
     1224             $mofs .= "<tr><td class='friendlist-header label' valign='top'>$label (" . scalar @memberof . "):</td><td>$list"; 
    12241225             $mofs .= "</td></tr>\n"; 
    12251226 
     
    12311232             } 
    12321233             chop $list; chop $list; 
    1233              $mofs .= "<tr><td valign='top' style='white-space: nowrap; font-weight: bold; text-align: right;'></td><td><span style='font-weight: bold;'>$alt_clabel Sponsored (" . 
    1234                  scalar @alt_memberof .")</span> $list</td></tr>\n" if (scalar @alt_memberof); 
     1234             $mofs .= "<tr><td class='friendlist-header label' valign='top'>&nbsp;</td><td><span style='font-weight: bold;'>$alt_clabel Sponsored (" . 
     1235                 scalar @alt_memberof ."):</span> $list</td></tr>\n" if (scalar @alt_memberof); 
    12351236         } 
    12361237     } 
     
    12741275         if (my $vcount = @accesslist) { 
    12751276             $count = $vcount if $count < $CHOP_POINT; 
    1276              $posting .= "<tr valign='top'><td align='right'><b>$ML{'.label.shared'} </b></td>" . 
    1277                  "<td><span style='font-weight: bold;'>($count)</span> "; 
     1277             $posting .= "<tr valign='top'><td class='friendlist-header label' valign='top'>Posting Access ($count):</td>" . 
     1278                 "<td>"; 
    12781279             $posting .= join(", ", map { "<a href='" . $_->profile_url() . "'>$_->{user}</a>" } @accesslist); 
    12791280             $posting .= ", ..." if $chopped; 
     
    12881289         } 
    12891290         chop $list; chop $list; 
    1290          $posting .= "<tr><td valign='top' style='white-space: nowrap; font-weight: bold; text-align: right;'></td><td><span style='font-weight: bold;'>$alt_label Sponsored (" . 
    1291              scalar @alt_access .")</span> $list</td></tr>\n" if (scalar @alt_access); 
     1291         $posting .= "<tr><td class='friendlist-header label' valign='top'>&nbsp;</td><td><span style='font-weight: bold;'>$alt_label Sponsored (" . 
     1292             scalar @alt_access ."):</span> $list</td></tr>\n" if (scalar @alt_access); 
    12921293 
    12931294     } 
     
    13171318     if ($friends{'count'} || $mutual || $fofs) { 
    13181319         if (!$friends{'loaded'} || !$friends{'display'}) { 
    1319              $body .= "<b><a href='$LJ::SITEROOT/tools/friendlist.bml?user=" . $u->user_url_arg . "'>" . $friends{'count'} . "</a>:</b> "; 
    1320              $body .= "<a href='$LJ::SITEROOT/directory.bml?s_fro=1&amp;fro_user=$u->{'user'}'> " . ($com ? $ML{'.label.viewmembers'} : $ML{'.label.viewfriends'}) .  "</a>."; 
     1320             $body .= "<table>"; 
     1321             $body .= "<tr><td class='friendlist-header label' valign='top'>" . ($com ? "Members" : "Friends") . " ($friends{'count'}):</td>"; 
     1322             $body .= "<td><a href='$LJ::SITEROOT/directory.bml?s_fro=1&amp;fro_user=$u->{'user'}'>View</a></td></tr>"; 
     1323             $body .= "</table>"; 
    13211324         } elsif ($u->{'journaltype'} eq 'P' || $u->{'journaltype'} eq 'S' || $u->{'journaltype'} eq 'I') { 
    13221325             # personal/shared journals have a special way of showing their friends list, it breaks it down into 
     
    13651368             # now spit out the HTML 
    13661369             if ($pfriends || $mutual || $fofs) { 
    1367                  my $text = LJ::ehtml($ML{'.friends.user'}); 
     1370                 my $text = "Friends"; 
    13681371                 $body .= "<table>"; 
    1369                  $body .= "<tr><td style='text-align: right;font-weight:bold' nowrap valign='top'>$text"; 
     1372                 $body .= "<tr><td class='friendlist-header label' valign='top'>$text"; 
    13701373                 if ($pfriends) { 
    1371                      $body .= " (" . scalar @pfriends . ")</td>" . 
     1374                     $body .= " (" . scalar @pfriends . "):</td>" . 
    13721375                              "<td>$pfriends</td></tr>"; 
    13731376                 } else { 
     
    13791382             } 
    13801383             if ($cfriends) { 
    1381                  my $text = LJ::ehtml("Watching"); 
    1382                  $comms .= "<tr><td style='text-align: right;font-weight:bold' nowrap valign='top'>" . 
    1383                           "$text </td>" . 
    1384                           "<td><span style='font-weight:bold'>(" . scalar @cfriends . ")</span> $cfriends</td>" . 
     1384                 my $text = "Watching"; 
     1385                 $comms .= "<tr><td class='friendlist-header label' valign='top'>" . 
     1386                          "$text (" . (scalar @cfriends + scalar @alt_cfriends) . "):</td>" . 
     1387                          "<td>$cfriends</td>" . 
    13851388                          "</tr>"; 
    13861389             } 
     1390             if ($alt_cfriends) { 
     1391                 $alt_comms .= "<tr><td class='label' valign='top'>&nbsp;</td>" . 
     1392                          "<td><span style='font-weight: bold;'>$alt_clabel Sponsored (" . 
     1393                          scalar @alt_cfriends . "):</span> $alt_cfriends</td></tr>"; 
     1394             } 
    13871395             if ($yfriends) { 
    1388                  my $text = LJ::ehtml("Watching"); 
    1389                  $feeds .= "<table><tr><td style='text-align: right;font-weight:bold' nowrap valign='top'>" . 
    1390                           "$text (" . scalar @yfriends . ")</td>" . 
     1396                 my $text = "Watching"; 
     1397                 $feeds .= "<table><tr><td class='friendlist-header label' valign='top'>" . 
     1398                          "$text (" . scalar @yfriends . "):</td>" . 
    13911399                          "<td>$yfriends</td>" . 
    13921400                          "</tr></table>"; 
    13931401             } 
    1394              if ($alt_cfriends) { 
    1395                  $alt_comms .= "<tr><td style='text-align: right;font-weight:bold' nowrap valign='top'></td>" . 
    1396                           "<td><span style='font-weight:bold'>$alt_clabel Sponsored (" . 
    1397                           scalar @alt_cfriends . ")</span> $alt_cfriends</td></tr>"; 
    1398              } 
    13991402 
    14001403         } else { 
    1401              $body .= "<table><tr><td style='text-align: right;font-weight:bold' nowrap valign='top'>" . 
    1402                  "Members (" . $friends{'count'} . ")</td>" . 
     1404             $body .= "<table><tr><td class='friendlist-header label' valign='top'>" . 
     1405                 "Members (" . $friends{'count'} . "):</td>" . 
    14031406                 "<td>" . $listusers->(\@friends, 'member') . 
    14041407                 "</td></tr>";