From e5c3b749c4db030e6ca903616e1814718699f875 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 19 Nov 2007 16:44:24 +0000 Subject: [PATCH] - user web: tweak PM-related text svn path=/trunk/boinc/; revision=14259 --- checkin_notes | 11 ++++++++++- html/inc/forum.inc | 2 +- html/inc/pm.inc | 7 +++++-- html/user/white.css | 4 ++++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index ff4426f823..88dec6e4f6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -11345,4 +11345,13 @@ Rom 19 Nov 2007 clientgui/ BOINCTaskBar.cpp - \ No newline at end of file + +David 19 Nov 2007 + - user web: tweak PM-related text + + html/ + inc/ + pm.inc + forum.inc + user/ + white.css diff --git a/html/inc/forum.inc b/html/inc/forum.inc index fa49ad4709..3e7ea946e1 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -109,7 +109,7 @@ function show_forum_header($user) { if ($user) { echo "\n"; - echo "

", pm_notification($user); + echo "

Private messages: ", pm_notification($user); echo "\n"; } echo "\n"; diff --git a/html/inc/pm.inc b/html/inc/pm.inc index e14cac2d9f..999dd09ae0 100644 --- a/html/inc/pm.inc +++ b/html/inc/pm.inc @@ -115,8 +115,11 @@ function pm_notification($user) { $output = ""; $unread = BoincPrivateMessage::count("userid=$user->id AND opened=0"); - $output .= "".tra("Inbox")." ($unread ".tra("unread").")\n"; - $output .= "| ".tra("Write")."\n"; + $output .= "".tra("Inbox").""; + if ($unread) { + $output .= " ($unread ".tra("unread").")\n"; + } + $output .= " | ".tra("Write")."\n"; return $output; } diff --git a/html/user/white.css b/html/user/white.css index f3a66db03a..ce8d33b6e5 100644 --- a/html/user/white.css +++ b/html/user/white.css @@ -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;