Skip to content

Commit cd8fc89

Browse files
Update base and status templates, add error template.
1 parent b459adb commit cd8fc89

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

learnpython/templates/base.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta charset="utf-8">
66

77
<link href="{{ url_for("static", filename="css/screen.css") }}" media="screen,projection,tv" rel="stylesheet" type="text/css">
8-
98
{% block extra_head %}{% endblock %}
109
</head>
1110

@@ -15,7 +14,7 @@
1514
<header>
1615
<div class="left-wrapper">
1716
<h1>
18-
{% if not is_index %}<a href="{{ url_for("page", name="index") }}">{% endif %}{{ _("Learn Python in Kyiv, Ukraine") }}
17+
{% if not is_index %}<a href="{{ url_for("index") }}">{% endif %}{{ _("Learn Python in Kyiv, Ukraine") }}
1918
{% if not is_index %}</a>{% endif %}
2019
</h1>
2120
<p>
@@ -47,7 +46,7 @@ <h3>{{ _("3 flows on 12 studies") }}</h3>
4746
</article>
4847

4948
<footer>
50-
2012 &copy; <a{% if is_index %} class="active"{% endif %} href="{{ url_for("page", name="index") }}">Learn Python</a><br>
49+
2012 &copy; <a{% if is_index %} class="active"{% endif %} href="{{ url_for("index") }}">Learn Python</a><br>
5150

5251
<a id="medium-link-footer" href="{{ url_for("flows", _anchor="medium") }}">{{ _("Medium flow") }}</a> &middot;
5352
<a id="normal-link-footer" href="{{ url_for("flows", _anchor="normal") }}">{{ _("Normal flow") }}</a> &middot;

learnpython/templates/error.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "base.html" %}
2+
{% block content %}
3+
<h1>{{ _("Error %(code)s", code=error.code) }}</h1>
4+
<p><small>
5+
<a href="{{ url_for("index") }}">{{ _("Click here to return to index page") }}</a>
6+
</small></p>
7+
{% endblock %}

learnpython/templates/status.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p class="{{ category }}">{{ message }}</p>
88
{% endfor %}
99
<p><small>
10-
{{ _("You will redirect to next page in 10 seconds.") }}<br>
11-
<a href="{{ next }}">{{ _("Click here, if you don't wanna wait.") }}</a>
10+
{{ _("You will redirect to next page in 10 seconds") }}<br>
11+
<a href="{{ next }}">{{ _("Click here, if you don't wanna wait") }}</a>
1212
</small></p>
1313
{% endblock %}

0 commit comments

Comments
 (0)