|
53 | 53 | define("PAGE_SIZE", 20); |
54 | 54 |
|
55 | 55 | function return_link() { |
56 | | - echo "<p><a href=submit.php?action=status>Return to job status page</a>\n"; |
| 56 | + echo "<p><a href=submit.php?action=status>Return to batches page</a>\n"; |
57 | 57 | } |
58 | 58 |
|
59 | 59 | // get params of in-progress batches; they might not be in progress anymore. |
@@ -315,7 +315,7 @@ function() use ($apps) { |
315 | 315 | // They have manage access to these batches. |
316 | 316 | // |
317 | 317 | function handle_show_status($user) { |
318 | | - page_head("Job status"); |
| 318 | + page_head("Batches"); |
319 | 319 | $batches = BoincBatch::enum("user_id = $user->id order by id desc"); |
320 | 320 | get_batches_params($batches); |
321 | 321 | show_batches($batches, PAGE_SIZE, $user, null); |
@@ -669,7 +669,7 @@ function handle_query_job($user) { |
669 | 669 | text_start(800); |
670 | 670 |
|
671 | 671 | echo " |
672 | | - <li><a href=workunit.php?wuid=$wuid>Workunit details</a> |
| 672 | + <li><a href=workunit.php?wuid=$wuid>Job details</a> |
673 | 673 | <p> |
674 | 674 | <li><a href=submit.php?action=query_batch&batch_id=$wu->batch>Batch details</a> |
675 | 675 | "; |
@@ -705,7 +705,13 @@ function handle_query_job($user) { |
705 | 705 | $wu->batch, $wu->name, $log_names[$i] |
706 | 706 | ); |
707 | 707 | $name = $log_names[$i]; |
708 | | - $x[] = "$name: <a href=get_output3.php?action=get_file&path=$path>view</a> · <a href=get_output3.php?action=get_file&path=$path&download=1>download</a>"; |
| 708 | + // don't show 'view' link if it's a .zip |
| 709 | + $y = "$name: "; |
| 710 | + if (!strstr($name, '.zip')) { |
| 711 | + $y .= "<a href=get_output3.php?action=get_file&path=$path>view</a> · "; |
| 712 | + } |
| 713 | + $y .= "<a href=get_output3.php?action=get_file&path=$path&download=1>download</a>"; |
| 714 | + $x[] = $y; |
709 | 715 | } else { |
710 | 716 | $path = dir_hier_path( |
711 | 717 | $phys_names[$i], $upload_dir, $fanout |
|
0 commit comments