Ticket #977: workunit.diff
File workunit.diff, 2.2 KB (added by , 14 years ago) |
---|
-
user/workunit.php
27 27 $wuid = get_int("wuid"); 28 28 $wu = BoincWorkunit::lookup_id($wuid); 29 29 if (!$wu) { 30 error_page( "can't find workunit");30 error_page(tra("can't find workunit")); 31 31 } 32 32 33 page_head( "Workunit $wuid");33 page_head(tra("Workunit %1", $wuid)); 34 34 $app = BoincApp::lookup_id($wu->appid); 35 35 36 36 start_table(); 37 row2( "name", $wu->name);38 row2( "application", $app->user_friendly_name);39 row2( "created", time_str($wu->create_time));37 row2(tra("name"), $wu->name); 38 row2(tra("application"), $app->user_friendly_name); 39 row2(tra("created"), time_str($wu->create_time)); 40 40 if ($wu->canonical_resultid) { 41 row2( "canonical result",41 row2(tra("canonical result"), 42 42 "<a href=result.php?resultid=$wu->canonical_resultid>$wu->canonical_resultid</a>" 43 43 ); 44 row2( "granted credit", format_credit($wu->canonical_credit));44 row2(tra("granted credit"), format_credit($wu->canonical_credit)); 45 45 } 46 46 47 47 // if app is using adaptive replication and no canonical result yet, … … 49 49 // (so that bad guys can't tell if they have an unreplicated job) 50 50 51 51 if ($app->target_nresults>0 && !$wu->canonical_resultid) { 52 row2( "Tasks in progress", "suppressed pending completion");52 row2(tra("Tasks in progress"), tra("suppressed pending completion")); 53 53 end_table(); 54 54 } else { 55 row2( "minimum quorum", $wu->min_quorum);56 row2( "initial replication", $wu->target_nresults);57 row2( "max # of error/total/success tasks",55 row2(tra("minimum quorum"), $wu->min_quorum); 56 row2(tra("initial replication"), $wu->target_nresults); 57 row2(tra("max # of error/total/success tasks"), 58 58 "$wu->max_error_results, $wu->max_total_results, $wu->max_success_results" 59 59 ); 60 60 if ($wu->error_mask) { 61 row2( "errors", wu_error_mask_str($wu->error_mask));61 row2(tra("errors"), wu_error_mask_str($wu->error_mask)); 62 62 } 63 63 if ($wu->need_validate) { 64 row2( "validation", "Pending");64 row2(tra("validation"), tra("Pending")); 65 65 } 66 66 end_table(); 67 67 project_workunit($wu);