Diff

Differences From Artifact [e52dc222ad]:

To Artifact [98cd8538ea]:


    31     31   		set status "Queued"
    32     32   	}
    33     33   }
    34     34   
    35     35   if {[info exists outfile]} {
    36     36   	if {[file exists $outfile]} {
    37     37   		set status "Complete"
           38  +		set terminal 1
    38     39   
    39     40   		set url "http://kitcreator.rkeene.org/kits/$key/$filename"
    40     41   	} elseif {[file exists "${outfile}.buildfail"]} {
    41     42   		set status "Failed"
    42         -
    43     43   		set terminal 1
    44     44   	} else {
    45     45   		set status "Building"
    46     46   	}
    47     47   }
    48     48   
    49     49   puts "Content-Type: text/html"
    50     50   if {[info exists url]} {
    51         -	puts "Location: $url"
           51  +	# Use a refresh here instead of a "Location" so that
           52  +	# the client can see the page
           53  +	puts "Refresh: 0;url=$url"
    52     54   } else {
    53     55   	if {!$terminal} {
    54     56   		puts "Refresh: 30;url=."
    55     57   	}
    56     58   }
    57     59   puts ""
    58     60   puts "<html>"
    59     61   puts "\t<head>"
    60     62   puts "\t\t<title>KitCreator, Web Interface</title>"
    61     63   puts "\t</head>"
    62     64   puts "\t<body>"
    63     65   puts "\t\t<h1>KitCreator Web Interface</h1>"
    64     66   puts "\t\t<p><b>Status:</b> $status</p>"
           67  +if {[info exists url]} {
           68  +puts "\t\t<p><b>URL:</b> <a href=\"$url\">$url</a></p>"
           69  +}
    65     70   puts "\t</body>"
    66     71   puts "</html>"