gfse: link back to the editor from the upload page

This commit is contained in:
hallgren
2011-03-07 16:05:55 +00:00
parent 2c6c85974e
commit d46c7ee90d

View File

@@ -30,10 +30,12 @@ check_grammar() {
if gf -s -make $files 2>&1 ; then if gf -s -make $files 2>&1 ; then
end end
h3 OK h3 OK
begin ul begin dl
[ -z "$minibar" ] || { li; link "$minibar?/tmp/${dir##*/}/" "Minibar"; } [ -z "$minibar" ] || { dt; echo "▸"; link "$minibar?/tmp/${dir##*/}/" "Minibar"; }
[ -z "$transquiz" ] || { li; link "$transquiz?/tmp/${dir##*/}/" "Translation Quiz"; } [ -z "$transquiz" ] || { dt; echo "▸"; link "$transquiz?/tmp/${dir##*/}/" "Translation Quiz"; }
[ -z "$gfshell" ] || { li; link "$gfshell?dir=${dir##*/}" "GF Shell"; } [ -z "$gfshell" ] || { dt; echo "▸"; link "$gfshell?dir=${dir##*/}" "GF Shell"; }
dt ; echo "◂"; link "javascript:history.back()" "Back to Editor"
end end
begin pre begin pre
ls -l *.pgf ls -l *.pgf
@@ -59,7 +61,7 @@ if [ -z "$tmp" ] || [ -z "$grammars" ] ||
echo "upload.cgi is not properly configured" echo "upload.cgi is not properly configured"
# cgiconfig.sh must define tmp and grammars. # cgiconfig.sh must define tmp and grammars.
# cgiconfig.sh should minibar and gfshell to allow grammars to be tested. # cgiconfig.sh should define minibar & gfshell to allow grammars to be tested.
endall endall
else else
case "$REQUEST_METHOD" in case "$REQUEST_METHOD" in