mirror of https://github.com/BOINC/boinc.git
- web: add Comment link to news items
svn path=/trunk/boinc/; revision=19991
This commit is contained in:
parent
88616eb157
commit
43d4c667a7
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
· <a class=heading href=\"trac/wiki/ServerUpdates\">".tra("Software updates")."</a>
|
||||
<b><a class=heading href=\"trac/wiki/ProjectMain\">".tra("Documentation")."</a></b>
|
||||
· <b><a class=heading href=\"trac/wiki/ServerUpdates\">".tra("Software updates")."</a></b>
|
||||
</center>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
<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) {
|
||||
|
|
Loading…
Reference in New Issue