404-page improved
name of the template included in html source code as comment validation results: non-empty diff files will not be removed test case for 404 fixed
This commit is contained in:
parent
c621a89f3f
commit
2e8acce842
|
@ -62,12 +62,15 @@ create_summary()
|
||||||
local DIFF_FILE=${a%.desc}.diff
|
local DIFF_FILE=${a%.desc}.diff
|
||||||
if [ -s "$DIFF_FILE" ]
|
if [ -s "$DIFF_FILE" ]
|
||||||
then cat "$SUMMARY_TEMPLATE_DIR/result-error"
|
then cat "$SUMMARY_TEMPLATE_DIR/result-error"
|
||||||
cat "$DIFF_FILE"
|
cat "$DIFF_FILE" | sed 's/\$/<br\/>/'
|
||||||
else cat "$SUMMARY_TEMPLATE_DIR/result-ok"
|
else cat "$SUMMARY_TEMPLATE_DIR/result-ok"
|
||||||
echo "no differences found"
|
echo "no differences found"
|
||||||
fi
|
fi
|
||||||
cat "$SUMMARY_TEMPLATE_DIR/single_footer"
|
cat "$SUMMARY_TEMPLATE_DIR/single_footer"
|
||||||
rm "$DIFF_FILE" "$a"
|
# remove description file
|
||||||
|
rm "$a"
|
||||||
|
# remove if empty
|
||||||
|
[ -e "$DIFF_FILE" -a ! -s "$DIFF_FILE"] && rm "$DIFF_FILE"
|
||||||
done
|
done
|
||||||
cat "$SUMMARY_TEMPLATE_DIR/footer"
|
cat "$SUMMARY_TEMPLATE_DIR/footer"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?cs include:TemplateDir + '/macros.cs' ?>
|
<?cs include:TemplateDir + '/macros.cs' ?>
|
||||||
<?cs include:TemplateDir + '/header.cs' ?>
|
<?cs include:TemplateDir + '/header.cs' ?>
|
||||||
|
|
||||||
|
<!-- this cryptobox template follows: <?cs var:Data.Action ?> -->
|
||||||
|
|
||||||
<?cs if:Data.Error ?>
|
<?cs if:Data.Error ?>
|
||||||
<?cs include:TemplateDir + '/error.cs' ?>
|
<?cs include:TemplateDir + '/error.cs' ?>
|
||||||
<?cs else ?>
|
<?cs else ?>
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
Data.Config.IP=192.168.0.23
|
|
||||||
Data.Config.Language=de
|
|
||||||
Data.Config.TimeOut=30
|
|
||||||
Data.Status.Config=0
|
|
||||||
Data.Status.InitRunning=0
|
|
||||||
Data.Status.IP=192.168.0.23
|
|
||||||
Data.Status.Mounted=0
|
|
|
@ -9,8 +9,18 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>Error 404 - page not found!</h1>
|
<div id="main">
|
||||||
<p>Please go to the <a href="/cryptobox" title="CryptoBox">CryptoBox-Interface</a></p>
|
<div id="head">
|
||||||
|
<h1>CryptoBox</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
<div id="words">
|
||||||
|
<h1>Error 404 - page not found!</h2>
|
||||||
|
<p>Please go to the <a href="/cryptobox" title="CryptoBox">CryptoBox-Interface</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue