- user web: tweak PM-related text

svn path=/trunk/boinc/; revision=14259
This commit is contained in:
David Anderson 2007-11-19 16:44:24 +00:00
parent 9b631ce48f
commit e5c3b749c4
4 changed files with 20 additions and 4 deletions

View File

@ -11345,4 +11345,13 @@ Rom 19 Nov 2007
clientgui/
BOINCTaskBar.cpp
David 19 Nov 2007
- user web: tweak PM-related text
html/
inc/
pm.inc
forum.inc
user/
white.css

View File

@ -109,7 +109,7 @@ function show_forum_header($user) {
if ($user) {
echo "<td align=\"right\">\n";
echo "<p>", pm_notification($user);
echo "<p>Private messages: ", pm_notification($user);
echo "</td>\n";
}
echo "</tr>\n";

View File

@ -115,8 +115,11 @@ function pm_notification($user) {
$output = "";
$unread = BoincPrivateMessage::count("userid=$user->id AND opened=0");
$output .= "<a href=\"pm.php?action=inbox\">".tra("Inbox")."</a> ($unread ".tra("unread").")\n";
$output .= "| <a href=\"pm.php?action=new\">".tra("Write")."</a>\n";
$output .= "<a href=\"pm.php?action=inbox\">".tra("Inbox")."</a>";
if ($unread) {
$output .= "<span class=\"inboxunread\"> ($unread ".tra("unread").")</span>\n";
}
$output .= " | <a href=\"pm.php?action=new\">".tra("Write")."</a>\n";
return $output;
}

View File

@ -254,6 +254,10 @@ span.news_date {
font-size: 0.9em;
}
span.inboxunread {
font-weight: bold;
}
.code {
font-family: "Consolas", "Courier New", courier, monospace;
display: block;