From 43d4c667a77ed32c623397953a5a575dd6a497a6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 19 Dec 2009 18:14:04 +0000 Subject: [PATCH] - web: add Comment link to news items svn path=/trunk/boinc/; revision=19991 --- checkin_notes | 7 +++++++ doc/index.php | 4 ++-- doc/white.css | 2 +- html/inc/news.inc | 11 ++++++----- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/checkin_notes b/checkin_notes index 5416fc9a10..58542ec149 100644 --- a/checkin_notes +++ b/checkin_notes @@ -10434,3 +10434,10 @@ Rom 19 Dec 2009 clientgui/ AdvancedFrame.cpp, .h DlgEventLog.cpp + +David 19 Dec 2009 + - web: add Comment link to news items + + html/inc/ + news.inc + diff --git a/doc/index.php b/doc/index.php index d80f0432d3..1782152107 100644 --- a/doc/index.php +++ b/doc/index.php @@ -115,8 +115,8 @@ function show_create() {
".tra("Compute with BOINC")."
- ".tra("Documentation")." - · ".tra("Software updates")." + ".tra("Documentation")." + · ".tra("Software updates")."
diff --git a/doc/white.css b/doc/white.css index b03fc31b71..75e269ce1a 100644 --- a/doc/white.css +++ b/doc/white.css @@ -21,7 +21,7 @@ a.heading { a:link, a:visited, a:active{ color: rgb(0, 105, 161); text-decoration: none; - font-weight: bold; +#font-weight: bold; } a:hover { diff --git a/html/inc/news.inc b/html/inc/news.inc index dc48a2b633..ff9b722cbb 100644 --- a/html/inc/news.inc +++ b/html/inc/news.inc @@ -18,16 +18,17 @@ require_once("../project/project.inc"); -function news_item($date, $title, $text) { +function news_item($date, $title, $post) { echo "

"; if ($title) { echo "$title
\n"; } $d = time_str($date); - $text = bb2html($text); + $text = bb2html($post->content); echo " - $d -
$text + $text +
$d +   thread>".tra("Comment")." "; } @@ -65,7 +66,7 @@ function show_news($start, $count) { } else { $title = $thread->title; } - news_item($thread->create_time, $title, $post->content); + news_item($thread->create_time, $title, $post); } if ($count) {