Changeset 14059
- Timestamp:
- 07/16/08 00:15:46 (5 years ago)
- Location:
- branches/r34/htdocs
- Files:
-
- 2 modified
-
stc/profile.css (modified) (1 diff)
-
userinfo_2008.bml (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/r34/htdocs/stc/profile.css
r14058 r14059 70 70 font-weight: bold; 71 71 text-align: right; 72 white-space: nowrap;73 72 } 73 74 td.friendlist-header { 75 width: 180px; 76 } -
branches/r34/htdocs/userinfo_2008.bml
r14057 r14059 424 424 } 425 425 } 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; 427 428 428 429 if ($pm->remote_can_post) { … … 661 662 # Comments 662 663 $body .= "<br />$com_got comments received"; 663 $body .= " | $com_postposted" unless ($com || $synd);664 $body .= ", $com_post comments posted" unless ($com || $synd); 664 665 $body .= "<br />"; 665 666 … … 1154 1155 my $label; 1155 1156 if ($u->show_mutualfriends && (my $n_friends = $fro_m->mutual_friends)) { 1156 $label = $ML{'.label.mutual'};1157 $label = "Mutual Friends"; 1157 1158 my $count = 1; 1158 1159 my $bold_mutual = ! LJ::u_equals($remote, $u); … … 1170 1171 } 1171 1172 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>"; 1174 1175 $mutual .= "<td valign='top'>$list"; 1175 1176 $mutual .= ", <a href='?mode=full'>...</a>" if $clipped; … … 1177 1178 } 1178 1179 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"); 1181 1182 my $count = 1; 1182 1183 my $clipped = 0; # bool … … 1199 1200 } 1200 1201 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):"; 1202 1203 if ($u->{'opt_hidefriendofs'}) { 1203 1204 $fofs .= "<br /><i>$ML{'.friendof.hidden'}</i>"; … … 1209 1210 } 1210 1211 if ($friendsof{'display'} && (my $n_friends = $fro_m->member_of)) { 1211 $label = $ML{'.label.memberof'};1212 $label = "Member of"; 1212 1213 my @memberof = $fro_m->member_of; 1213 1214 my @alt_memberof; … … 1221 1222 } 1222 1223 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"; 1224 1225 $mofs .= "</td></tr>\n"; 1225 1226 … … 1231 1232 } 1232 1233 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'> </td><td><span style='font-weight: bold;'>$alt_clabel Sponsored (" . 1235 scalar @alt_memberof ."):</span> $list</td></tr>\n" if (scalar @alt_memberof); 1235 1236 } 1236 1237 } … … 1274 1275 if (my $vcount = @accesslist) { 1275 1276 $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>"; 1278 1279 $posting .= join(", ", map { "<a href='" . $_->profile_url() . "'>$_->{user}</a>" } @accesslist); 1279 1280 $posting .= ", ..." if $chopped; … … 1288 1289 } 1289 1290 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'> </td><td><span style='font-weight: bold;'>$alt_label Sponsored (" . 1292 scalar @alt_access ."):</span> $list</td></tr>\n" if (scalar @alt_access); 1292 1293 1293 1294 } … … 1317 1318 if ($friends{'count'} || $mutual || $fofs) { 1318 1319 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&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&fro_user=$u->{'user'}'>View</a></td></tr>"; 1323 $body .= "</table>"; 1321 1324 } elsif ($u->{'journaltype'} eq 'P' || $u->{'journaltype'} eq 'S' || $u->{'journaltype'} eq 'I') { 1322 1325 # personal/shared journals have a special way of showing their friends list, it breaks it down into … … 1365 1368 # now spit out the HTML 1366 1369 if ($pfriends || $mutual || $fofs) { 1367 my $text = LJ::ehtml($ML{'.friends.user'});1370 my $text = "Friends"; 1368 1371 $body .= "<table>"; 1369 $body .= "<tr><td style='text-align: right;font-weight:bold' nowrapvalign='top'>$text";1372 $body .= "<tr><td class='friendlist-header label' valign='top'>$text"; 1370 1373 if ($pfriends) { 1371 $body .= " (" . scalar @pfriends . ") </td>" .1374 $body .= " (" . scalar @pfriends . "):</td>" . 1372 1375 "<td>$pfriends</td></tr>"; 1373 1376 } else { … … 1379 1382 } 1380 1383 if ($cfriends) { 1381 my $text = LJ::ehtml("Watching");1382 $comms .= "<tr><td style='text-align: right;font-weight:bold' nowrapvalign='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>" . 1385 1388 "</tr>"; 1386 1389 } 1390 if ($alt_cfriends) { 1391 $alt_comms .= "<tr><td class='label' valign='top'> </td>" . 1392 "<td><span style='font-weight: bold;'>$alt_clabel Sponsored (" . 1393 scalar @alt_cfriends . "):</span> $alt_cfriends</td></tr>"; 1394 } 1387 1395 if ($yfriends) { 1388 my $text = LJ::ehtml("Watching");1389 $feeds .= "<table><tr><td style='text-align: right;font-weight:bold' nowrapvalign='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>" . 1391 1399 "<td>$yfriends</td>" . 1392 1400 "</tr></table>"; 1393 1401 } 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 }1399 1402 1400 1403 } else { 1401 $body .= "<table><tr><td style='text-align: right;font-weight:bold' nowrapvalign='top'>" .1402 "Members (" . $friends{'count'} . ") </td>" .1404 $body .= "<table><tr><td class='friendlist-header label' valign='top'>" . 1405 "Members (" . $friends{'count'} . "):</td>" . 1403 1406 "<td>" . $listusers->(\@friends, 'member') . 1404 1407 "</td></tr>";
