Add disclaimer page

This commit is contained in:
Gergely Polonkai 2014-12-23 11:59:26 +01:00 committed by Gergely Polonkai
parent b2e434300a
commit 4709655808
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{% extends 'front_template.html' %}
{% block body %}
<h2>Disclaimer</h2>
<p>Basic idea is from <a href="http://en.wikipedia.org/wiki/The_Pragmatic_Programmer">The Pragmatic Programmer. I suggest to read this book, even if you are not a programmer.</p>
{% endblock %}

View File

@ -8,6 +8,7 @@
<a href="{% url 'index' %}">Home</a> <a href="{% url 'index' %}">Home</a>
<a href="{% url 'booking:terms' %}">Terms and Conditions</a> <a href="{% url 'booking:terms' %}">Terms and Conditions</a>
<a href="{% url 'booking:vocabulary' %}">Vocabulary</a> <a href="{% url 'booking:vocabulary' %}">Vocabulary</a>
<a href="{% url 'booking:disclaimer' %}">Disclaimer</a>
{% block body %}{% endblock %} {% block body %}{% endblock %}
</body> </body>
</html> </html>

View File

@ -11,3 +11,7 @@ class FrontTest(TestCase):
def test_terms_page(self): def test_terms_page(self):
response = self.client.get('/terms.html') response = self.client.get('/terms.html')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
def test_disclaimer_page(self):
response = self.client.get('/disclaimer.html')
self.assertEqual(response.status_code, 200)

View File

@ -13,4 +13,9 @@ urlpatterns = patterns(
TemplateView.as_view(template_name = 'booking/terms.html'), TemplateView.as_view(template_name = 'booking/terms.html'),
name = 'terms' name = 'terms'
), ),
url(
r'^disclaimer.html$',
TemplateView.as_view(template_name = 'booking/disclaimer.html'),
name = 'disclaimer'
),
) )