Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 66daf7c

Browse files
committed
409 File
409 Redirect
1 parent 7cffc91 commit 66daf7c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

quotefault/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,7 @@ def forbidden(e):
386386
def forbidden(e):
387387
return render_template('bootstrap/400.html', metadata=get_metadata()), 400
388388

389+
@app.errorhandler(409)
390+
def forbidden(e):
391+
return render_template('bootstrap/409.html', metadata=get_metadata()), 409
392+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends "bootstrap/base.html" %}
2+
3+
{% block styles %}
4+
<link rel="stylesheet" href="/static/css/votes/upvote.css">
5+
{% endblock %}
6+
7+
{% block body %}
8+
<div class="container">
9+
<h1 class="text-center">409 - Conflict</h1>
10+
<br>
11+
<br>
12+
<h3 class="text-center">Your request conflicts the current data within the system. If you believe this is wrong, contact an RTP.</h3>
13+
</div>
14+
{% endblock %}
15+
16+
{% block scripts %}
17+
<script src="{{ url_for('static', filename='js/load_more.js') }}"></script>
18+
<script src="{{ url_for('static', filename='css/votes/upvote.js') }}"></script>
19+
<script src="{{ url_for('static', filename='js/vote.js') }}"></script>
20+
{% endblock %}
21+

0 commit comments

Comments
 (0)