diff --git a/.gitignore b/.gitignore index f928e16..ca4e486 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ tiny0/__pycache__ tiny0/database.db +venv diff --git a/tiny0/forms.py b/tiny0/forms.py index da184ea..623af68 100644 --- a/tiny0/forms.py +++ b/tiny0/forms.py @@ -48,7 +48,7 @@ def validate_token(form, field): return # If the token is the same as a pages route - if field.data == "tracker" or field.data == "lookup" or field.data == "report" or field.data == "donate": + if field.data == "tracker" or field.data == "lookup" or field.data == "report" or field.data == "donate" or field.data == "removed": # Raise a ValidationError raise ValidationError("Token already exists") diff --git a/tiny0/routes.py b/tiny0/routes.py index 2bc3b37..c477ca8 100644 --- a/tiny0/routes.py +++ b/tiny0/routes.py @@ -123,6 +123,11 @@ def report(): def donate(): return render_template("donate.html") +# Removed url route +@app.route("/removed") +def removed(): + return render_template("removed.html") + # Error handling routes @app.errorhandler(404) def error_404(error): diff --git a/tiny0/static/style.css b/tiny0/static/style.css index 18fe893..6633751 100644 --- a/tiny0/static/style.css +++ b/tiny0/static/style.css @@ -233,6 +233,16 @@ body { color: #e26803; } +.removed { + color: #f68741; + text-align: center; + margin-top: 250px; +} + +.removed h1 { + font-size: 50px; +} + .error { color: #ffffff; text-align: center; diff --git a/tiny0/templates/removed.html b/tiny0/templates/removed.html new file mode 100644 index 0000000..e0d0a86 --- /dev/null +++ b/tiny0/templates/removed.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} + +{% block body %} +