Skip to content

Commit 80f1e37

Browse files
authored
Merge pull request #6356 from BOINC/dpa_submit31
web (job submission) tweaks
2 parents f3ad4d0 + f4166c9 commit 80f1e37

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

html/user/result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
error_page(tra("No such task:")." ".htmlspecialchars($x));
3434
// the htmlspecialchars prevents XSS
3535
}
36-
page_head(tra("Task")." ".htmlspecialchars($x));
36+
page_head("Job instance ".htmlspecialchars($x));
3737
show_result($result);
3838
page_tail();
3939

html/user/submit.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
define("PAGE_SIZE", 20);
5454

5555
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";
5757
}
5858

5959
// get params of in-progress batches; they might not be in progress anymore.
@@ -315,7 +315,7 @@ function() use ($apps) {
315315
// They have manage access to these batches.
316316
//
317317
function handle_show_status($user) {
318-
page_head("Job status");
318+
page_head("Batches");
319319
$batches = BoincBatch::enum("user_id = $user->id order by id desc");
320320
get_batches_params($batches);
321321
show_batches($batches, PAGE_SIZE, $user, null);
@@ -669,7 +669,7 @@ function handle_query_job($user) {
669669
text_start(800);
670670

671671
echo "
672-
<li><a href=workunit.php?wuid=$wuid>Workunit details</a>
672+
<li><a href=workunit.php?wuid=$wuid>Job details</a>
673673
<p>
674674
<li><a href=submit.php?action=query_batch&batch_id=$wu->batch>Batch details</a>
675675
";
@@ -705,7 +705,13 @@ function handle_query_job($user) {
705705
$wu->batch, $wu->name, $log_names[$i]
706706
);
707707
$name = $log_names[$i];
708-
$x[] = "$name: <a href=get_output3.php?action=get_file&path=$path>view</a> &middot; <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> &middot; ";
712+
}
713+
$y .= "<a href=get_output3.php?action=get_file&path=$path&download=1>download</a>";
714+
$x[] = $y;
709715
} else {
710716
$path = dir_hier_path(
711717
$phys_names[$i], $upload_dir, $fanout

0 commit comments

Comments
 (0)