mirror of https://github.com/BOINC/boinc.git
parent
13c3841e69
commit
d848e54518
|
@ -1696,3 +1696,14 @@ David 18 Feb 2009
|
|||
work_fetch.cpp
|
||||
lib/
|
||||
error_numbers.h
|
||||
|
||||
David 18 Feb 2009
|
||||
- web tweaks
|
||||
|
||||
html/
|
||||
inc/
|
||||
host.inc
|
||||
result.inc
|
||||
user/
|
||||
workunit.php
|
||||
result.php
|
||||
|
|
|
@ -62,13 +62,16 @@ function location_form($host) {
|
|||
return $x;
|
||||
}
|
||||
|
||||
function cross_project_links($host) {
|
||||
function cross_project_links($host, $indent) {
|
||||
global $host_sites;
|
||||
$x = "";
|
||||
shuffle($host_sites);
|
||||
foreach ($host_sites as $h) {
|
||||
$url = $h[0];
|
||||
$name = $h[1];
|
||||
if ($indent) {
|
||||
$x .= " ";
|
||||
}
|
||||
$x .= "<a href=$url".$host->host_cpid.">$name</a><br>\n";
|
||||
}
|
||||
return $x;
|
||||
|
@ -109,7 +112,7 @@ function show_host($host, $user, $ipprivate) {
|
|||
row2("Total credit", format_credit_large($host->total_credit));
|
||||
row2("Average credit", format_credit($host->expavg_credit));
|
||||
if (!$anonymous) {
|
||||
row2("Cross project credit", cross_project_links($x));
|
||||
row2("Cross project credit", cross_project_links($x, false));
|
||||
}
|
||||
row2("CPU type", "$host->p_vendor <br> $host->p_model");
|
||||
row2("Number of processors", $host->p_ncpus);
|
||||
|
@ -202,7 +205,7 @@ function show_host($host, $user, $ipprivate) {
|
|||
function top_host_table_start($sort_by) {
|
||||
start_table();
|
||||
echo "<tr>";
|
||||
echo "<th>Computer ID</th>\n";
|
||||
echo "<th>Computer info</th>\n";
|
||||
echo "<th>Rank</th>";
|
||||
echo "<th>Owner</th>\n";
|
||||
if ($sort_by == 'total_credit') {
|
||||
|
@ -262,13 +265,13 @@ function show_host_row($host, $i, $private, $show_owner) {
|
|||
}
|
||||
}
|
||||
}
|
||||
echo "<tr class=row$j><td>
|
||||
• <a href=show_host_detail.php?hostid=$host->id>Details</a>
|
||||
<br>• <a href=results.php?hostid=$host->id>Tasks</a>
|
||||
echo "<tr class=row$j><td>ID: $host->id
|
||||
<br><a href=show_host_detail.php?hostid=$host->id>Details</a> |
|
||||
<a href=results.php?hostid=$host->id>Tasks</a>
|
||||
";
|
||||
if (!$anonymous) {
|
||||
echo "
|
||||
<br><nobr>• Cross-project credit:</nobr><br>".cross_project_links($host);
|
||||
<br><nobr>Cross-project credit:</nobr><br>".cross_project_links($host, true);
|
||||
}
|
||||
echo "
|
||||
</td>
|
||||
|
|
|
@ -259,7 +259,6 @@ function exit_status_string($result) {
|
|||
|
||||
function show_result($result) {
|
||||
start_table();
|
||||
row2("Task ID", $result->id);
|
||||
row2("Name", $result->name);
|
||||
row2("Workunit", "<a href=\"workunit.php?wuid=$result->workunitid\">$result->workunitid</a>");
|
||||
row2("Created", time_str($result->create_time));
|
||||
|
|
|
@ -27,7 +27,7 @@ $result = lookup_result($resultid);
|
|||
if (!$result) {
|
||||
error_page("No such task");
|
||||
}
|
||||
page_head("Task details");
|
||||
page_head("Task $resultid");
|
||||
show_result($result);
|
||||
page_tail();
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ if ($user->id != $host->userid) {
|
|||
$user = null;
|
||||
}
|
||||
|
||||
page_head("Computer summary");
|
||||
page_head("Computer $hostid");
|
||||
show_host($host, $user, $ipprivate);
|
||||
page_tail();
|
||||
|
||||
|
|
|
@ -28,13 +28,13 @@ if (!$wu) {
|
|||
error_page("can't find workunit");
|
||||
}
|
||||
|
||||
page_head("Workunit details");
|
||||
page_head("Workunit $wuid");
|
||||
$app = BoincApp::lookup_id($wu->appid);
|
||||
|
||||
start_table();
|
||||
row2("name", $wu->name);
|
||||
row2("application", $app->user_friendly_name);
|
||||
row2("created", time_str($wu->create_time));
|
||||
row2("name", $wu->name);
|
||||
if ($wu->canonical_resultid) {
|
||||
row2("canonical result",
|
||||
"<a href=result.php?resultid=$wu->canonical_resultid>$wu->canonical_resultid</a>"
|
||||
|
|
Loading…
Reference in New Issue