Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Merret Buurman
pidlandingpage
Commits
38ba8bb2
Commit
38ba8bb2
authored
Jun 06, 2016
by
Merret Buurman
Browse files
Landing page in case of problem now has template.
parent
15dd7249
Changes
2
Hide whitespace changes
Inline
Side-by-side
landingpage/landingpageapp/pages/errorpages.py
View file @
38ba8bb2
...
...
@@ -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
landingpage/landingpageapp/templates/landingpage/problempage_dkrz.html
0 → 100644
View file @
38ba8bb2
{% extends "landingpage/dkrz_headerfooter.html" %}
{% block content %}
<div
class=
"section"
>
<h1>
Oops, a problem occurred.
</h1>
</div>
<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=
"mailto:handle@dkrz.de"
>
hear from you
</a>
where you found the link to this handle, so we can fix the problem. Thanks a lot!
</p>
</div>
{% endblock %}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment