diff --git a/endpoints/web.py b/endpoints/web.py index c2198fb67..e42a9b6b1 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -22,6 +22,7 @@ web = Blueprint('web', __name__) STATUS_TAGS = app.config['STATUS_TAGS'] + @web.route('/', methods=['GET'], defaults={'path': ''}) @web.route('/organization/', methods=['GET']) @no_cache @@ -29,6 +30,11 @@ def index(path): return render_page_template('index.html') +@web.route('/500', methods=['GET']) +def internal_error_display(): + return render_page_template('500.html') + + @web.route('/snapshot', methods=['GET']) @web.route('/snapshot/', methods=['GET']) @web.route('/snapshot/', methods=['GET']) diff --git a/static/img/500/background.svg b/static/img/500/background.svg new file mode 100644 index 000000000..711fc05c0 --- /dev/null +++ b/static/img/500/background.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/500/ship.svg b/static/img/500/ship.svg new file mode 100644 index 000000000..3330d4720 --- /dev/null +++ b/static/img/500/ship.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/500/water.svg b/static/img/500/water.svg new file mode 100644 index 000000000..2c85ebc62 --- /dev/null +++ b/static/img/500/water.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + diff --git a/static/js/app.js b/static/js/app.js index 7065af6f1..a5dbf2637 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -3516,6 +3516,11 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi return false; } + if (response.status == 500) { + document.location = '/500'; + return false; + } + return true; }); diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 000000000..65d5dabaf --- /dev/null +++ b/templates/500.html @@ -0,0 +1,91 @@ + + Quay.io - Something went wrong! + + + + + + + + +
+ +

Something went wrong on our end!

+

+ We're currently working to fix the problem, but if its persists please feel free to contact us. In the meantime, try a refreshing drink (or just refreshing). +

+
+ +