- web: add Comment link to news items

svn path=/trunk/boinc/; revision=19991
This commit is contained in:
David Anderson 2009-12-19 18:14:04 +00:00
parent 88616eb157
commit 43d4c667a7
4 changed files with 16 additions and 8 deletions

View File

@ -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

View File

@ -115,8 +115,8 @@ function show_create() {
<center>
<span class=section_title>".tra("Compute with BOINC")."</span>
<br>
<a class=heading href=\"trac/wiki/ProjectMain\">".tra("Documentation")."</a>
&middot; <a class=heading href=\"trac/wiki/ServerUpdates\">".tra("Software updates")."</a>
<b><a class=heading href=\"trac/wiki/ProjectMain\">".tra("Documentation")."</a></b>
&middot; <b><a class=heading href=\"trac/wiki/ServerUpdates\">".tra("Software updates")."</a></b>
</center>
</td></tr>
<tr><td>

View File

@ -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 {

View File

@ -18,16 +18,17 @@
require_once("../project/project.inc");
function news_item($date, $title, $text) {
function news_item($date, $title, $post) {
echo "<p>";
if ($title) {
echo "<span class=news_title>$title</span><br>\n";
}
$d = time_str($date);
$text = bb2html($text);
$text = bb2html($post->content);
echo "
<span class=news_date>$d</span>
<br><span class=news_content>$text</span>
<span class=news_content>$text</span>
<br><span class=news_date>$d
&nbsp; <a href=".URL_BASE."forum_thread.php?id=$post->thread>".tra("Comment")."</a></span>
";
}
@ -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) {