- web: add hook for "science info" link in result lists (for CAS@home)

This commit is contained in:
David Anderson 2012-12-02 11:00:13 -08:00 committed by Oliver Bock
parent 2a120631a4
commit ddf4551108
3 changed files with 14 additions and 1 deletions

View File

@ -7221,3 +7221,10 @@ David 30 Nov 2012
vda/ vda/
sched_vda.cpp sched_vda.cpp
vda_lib2.cpp vda_lib2.cpp
David 2 Dec 2012
- web: add hook for "science info" link in result lists (for CAS@home)
html/inc/
result.inc
util.inc

View File

@ -350,6 +350,9 @@ function result_table_start($show_wu_link, $show_host_link, $info) {
if ($show_wu_link) { if ($show_wu_link) {
echo "<th>".tra("Work unit")."<br><span class=\"smalltext\">".tra("click for details")."</span></th>\n"; echo "<th>".tra("Work unit")."<br><span class=\"smalltext\">".tra("click for details")."</span></th>\n";
} }
if (function_exists('project_result_info_heading')) {
echo "<th>", project_result_info_heading(), "</th>\n";
}
if ($show_host_link) { if ($show_host_link) {
echo "<th>".tra("Computer")."</th>\n"; echo "<th>".tra("Computer")."</th>\n";
} }
@ -408,6 +411,9 @@ function show_result_row(
if ($show_wu_link) { if ($show_wu_link) {
echo "<td><a href=\"workunit.php?wuid=$result->workunitid\">$result->workunitid</a></td>\n"; echo "<td><a href=\"workunit.php?wuid=$result->workunitid\">$result->workunitid</a></td>\n";
} }
if (function_exists('project_result_info_link')) {
echo "<td>", project_result_info_link($result), "</td>\n";
}
if ($show_host_link) { if ($show_host_link) {
echo "<td>", host_link($result->hostid), "</td>\n"; echo "<td>", host_link($result->hostid), "</td>\n";
} }

View File

@ -284,7 +284,7 @@ function date_str($x) {
function time_str($x) { function time_str($x) {
if ($x == 0) return "---"; if ($x == 0) return "---";
return gmdate('j M Y | G:i:s', $x) . " UTC"; return gmdate('j M Y, G:i:s', $x) . " UTC";
} }
function local_time_str($x) { function local_time_str($x) {