]> 91.132.146.200 Git - insipid.git/commitdiff
show the link after creation of screenshot
authorBanana <banana@starscream.de>
Fri, 30 Nov 2012 12:41:31 +0000 (13:41 +0100)
committerBanana <banana@starscream.de>
Fri, 30 Nov 2012 12:41:31 +0000 (13:41 +0100)
lib/Insipid/Main.pm

index 78914a00c8575c6f8ac2976a0a3584b3b796a4f1..66fb6e741f499944166afe1aa0566be2c5614772 100755 (executable)
@@ -434,6 +434,9 @@ FORM
                 my $output = `$phantomjsPath --proxy=10.0.1.11:80 ./lib/screen.js $url $screnshotNameFile`;
                 if($? == 0) {
                     print '<p style="color: green;">Success !</p>';
+                    if(-e $screnshotNameFile) {
+                        print "<p>Screenshot available: <a href='$screnshotNameFile'>see it here.</a><p>";
+                     }
                 }
                 else {
                     print "<p>Screenshot creation failed.<p>";