Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/apps/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from announcements.models import Announcement, NewsPost

from django.conf import settings
from django.shortcuts import render
from utils.data import pretty_bytes


Expand Down Expand Up @@ -115,8 +114,3 @@ def get_context_data(self, *args, **kwargs):

class MonitorQueuesView(TemplateView):
template_name = 'pages/monitor_queues.html'


def page_not_found_view(request, exception):
print(request)
return render(request, '404.html', status=404)
Binary file added src/static/img/403.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/img/500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/templates/403.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}


{% block content %}
<div class="sixteen wide mobile eight wide computer centered column">
<img src="/static/img/banned.png">
<p>You do not have permission to access this page.</p>
<p>If you believe this is a mistake, please contact the challenge organizer or reach out to us at info@codabench.org.</p>
<p>If this is an error, please file a <a href="https://github.com/codalab/codabench/issues/new">bug report</a>. For more information about Codabench, check out the <a href="https://docs.codabench.org">docs</a>.</p>
<a class="ui fluid blue submit button" href="/">Return to Home</a>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion src/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="/static/img/404.png">
<p>Could not find the page you requested.</p>
<p>If you are the challenge organizer and this URL previously pointed to a valid competition and it is now missing please contact us at info@codabench.org for more information.</p>
<p> If this is an error, please file a <a href="https://github.com/codalab/codabench/issues/new">bug report</a>. For more information about Codabench, check out the <a href="https://docs.codabench.org">docs</a>.</p>
<p>If this is an error, please file a <a href="https://github.com/codalab/codabench/issues/new">bug report</a>. For more information about Codabench, check out the <a href="https://docs.codabench.org">docs</a>.</p>
<a class="ui fluid blue submit button" href="/">Return to Home</a>
</div>
{% endblock %}
12 changes: 12 additions & 0 deletions src/templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}


{% block content %}
<div class="sixteen wide mobile eight wide computer centered column">
<img src="/static/img/404.png">
<p>Something went wrong on our end.</p>
<p>Our team has been notified. If the problem persists, please contact us at info@codabench.org.</p>
<p>If this is an error, please file a <a href="https://github.com/codalab/codabench/issues/new">bug report</a>. For more information about Codabench, check out the <a href="https://docs.codabench.org">docs</a>.</p>
<a class="ui fluid blue submit button" href="/">Return to Home</a>
</div>
{% endblock %}