Added a page for removed urls
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
tiny0/__pycache__
|
tiny0/__pycache__
|
||||||
tiny0/database.db
|
tiny0/database.db
|
||||||
|
venv
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@ def validate_token(form, field):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# If the token is the same as a pages route
|
# 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 a ValidationError
|
||||||
raise ValidationError("Token already exists")
|
raise ValidationError("Token already exists")
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,11 @@ def report():
|
|||||||
def donate():
|
def donate():
|
||||||
return render_template("donate.html")
|
return render_template("donate.html")
|
||||||
|
|
||||||
|
# Removed url route
|
||||||
|
@app.route("/removed")
|
||||||
|
def removed():
|
||||||
|
return render_template("removed.html")
|
||||||
|
|
||||||
# Error handling routes
|
# Error handling routes
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def error_404(error):
|
def error_404(error):
|
||||||
|
|||||||
@@ -233,6 +233,16 @@ body {
|
|||||||
color: #e26803;
|
color: #e26803;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.removed {
|
||||||
|
color: #f68741;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.removed h1 {
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends "layout.html" %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="removed">
|
||||||
|
<h1>URL removed</h1>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user