added list of why your comment might have failed

This commit is contained in:
rawleyIfowler
2022-02-26 13:40:22 -06:00
parent 807ca8c5e6
commit 90c6d84a3e

View File

@@ -1,11 +1,13 @@
{{ template "header.tmpl" . }} {{ template "header.tmpl" . }}
<h2>Your comment <u>failed</u> to be posted...</h2> <h2>Your comment <u>failed</u> to be posted...</h2>
<p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p> <p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
<input value="{{ .Url }}" readonly style="display: none;" id="url"/> <p>
<script> <h3>Your comment failed for one of these reasons:</h3>
setTimeout(() => { </p>
window.location.replace("/blog/post/" + document.getElementById("url").value) <ul>
}, 1500) <li>You failed the captcha.</li>
</script> <li>Your post had links in it.</li>
<li>The name on your comment was "rawley" or "admin".</li>
</ul>
</body> </body>
</html> </html>