Holger Frey
7 years ago
11 changed files with 47 additions and 43 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
{% extends "ordr:templates/layout.jinja2" %} |
||||
|
||||
{% block title %} Ordr | Error {% endblock title %} |
||||
|
||||
{% block content %} |
||||
<div class="row justify-content-md-center mt-3"> |
||||
<div class="col-8"> |
||||
<h1 class="mt-3">An Error has occured</h1> |
||||
<p class="mt-4">The link you've clicked has expired.</p> |
||||
<small class="text-secondary">410 - Gone</small> |
||||
</div> |
||||
</div> |
||||
{% endblock content %} |
||||
|
@ -1,35 +0,0 @@
@@ -1,35 +0,0 @@
|
||||
{% extends "ordr:templates/layout.jinja2" %} |
||||
|
||||
{% block title %} Ordr | Registration {% endblock title %} |
||||
|
||||
{% block content %} |
||||
<div class="row justify-content-md-center mt-3"> |
||||
<div class="col-6"> |
||||
<h1>Registration</h1> |
||||
</div> |
||||
</div> |
||||
<div class="row justify-content-md-center mt-3"> |
||||
<div class="col-2"> |
||||
<p class="text-secondary"> |
||||
Step 1: Registration |
||||
</p> |
||||
</div> |
||||
<div class="col-2"> |
||||
<p class="text-primary"> |
||||
Step 2: Validate Email |
||||
</p> |
||||
</div> |
||||
<div class="col-2"> |
||||
<p class="text-secondary"> |
||||
Step 3: Finished |
||||
</p> |
||||
</div> |
||||
</div> |
||||
<div class="row justify-content-md-center mt-3"> |
||||
<div class="col-6"> |
||||
<h3>Verify Your Email Address</h3> |
||||
<p class="mt-3">To complete the registration process an email has been sent to you.</p> |
||||
<p>Please follow the link in the email to verify your address and complete the registration process.</p> |
||||
</div> |
||||
</div> |
||||
{% endblock content %} |
@ -1,8 +1,22 @@
@@ -1,8 +1,22 @@
|
||||
from pyramid.view import notfound_view_config |
||||
from pyramid.view import notfound_view_config, view_config |
||||
|
||||
from ordr.models.account import TokenExpired |
||||
|
||||
@notfound_view_config(renderer='ordr:templates/errors/404.jinja2') |
||||
|
||||
@notfound_view_config( |
||||
renderer='ordr:templates/errors/404_file_not_found.jinja2' |
||||
) |
||||
def notfound_view(context, request): |
||||
''' display a file not found page ''' |
||||
request.response.status = 404 |
||||
return {} |
||||
|
||||
|
||||
@view_config( |
||||
context=TokenExpired, |
||||
renderer='ordr:templates/errors/410_token_expiry.jinja2' |
||||
) |
||||
def token_expired(context, request): |
||||
''' display page describing expired token ''' |
||||
request.response.status = 410 |
||||
return {} |
||||
|
Reference in new issue