Commit 695b646f authored by Merret Buurman's avatar Merret Buurman
Browse files

Added template for only prefix (cmip6).

parent 0e8cc514
......@@ -11,6 +11,9 @@ def only_prefix(prefix):
string = '<h1>Missing suffix!</h1><p>You entered an incomplete handle, with only a prefix: '+str(prefix)+'</p>'
return string
def only_prefix_cmip6(prefix):
string = '<h1>CMIP6 - Missing suffix!</h1><p>You entered an incomplete handle, with only a prefix: '+str(prefix)+'</p>'
return string
\ No newline at end of file
def only_prefix_cmip6(request, prefix):
template = loader.get_template('landingpage/cmip6_prefix_only.html')
context = {
"prefix": prefix
}
return template.render(context, request)
\ No newline at end of file
{% extends "landingpage/cmip6_headerfooter.html" %}
{% block content %}
<!--
The context object needs the following objects:
Simple values:
* drs
* handle [*]
* version
* newerversion
* any_part_replaced
[*] I do not check the existence of these, so if they don't exist, the page may break.
-->
<div class="section">
<h1>Missing suffix</h1>
</div>
<div class="section">
<p>You entered an incomplete handle, with only a prefix
{% if prefix %}
({{prefix}})
{% endif %}
.</p>
<p>If you were redirected to this page from somewhere, we would be happy to <a href="mailto:handle@dkrz.de">hear from you</a> where you found the incomplete link. Thanks a lot!</p>
</div>
{% endblock %}
\ No newline at end of file
Supports Markdown
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