Commit 38ba8bb2 authored by Merret Buurman's avatar Merret Buurman
Browse files

Landing page in case of problem now has template.

parent 15dd7249
......@@ -29,6 +29,10 @@ def problem_page_cmip6(request, handle, msg):
return template.render(context, request)
def problem_page(request, handle, msg): # TODO Template!
string = '<h1>Oops, something went wrong!!</h1><p>Problem with this handle: '+str(handle)+'</p><p>Error message: <em>'+msg+'</em></p>'
return string
\ No newline at end of file
def problem_page(request, handle, msg):
template = loader.get_template('landingpage/problempage_dkrz.html')
context = {
"handle": handle,
"msg": msg
return template.render(context, request)
\ No newline at end of file
{% extends "landingpage/dkrz_headerfooter.html" %}
{% block content %}
<div class="section">
<h1>Oops, a problem occurred.</h1>
<div class="section">
<p>Something went wrong while showing the landing page for handle {{ handle }}. </p>
{% if msg %}
<p>The error message provided was: <em>{{msg}}</em></p>
{% endif %}
<p>We would be happy to <a href="">hear from you</a> where you found the link to this handle, so we can fix the problem. Thanks a lot!</p>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment