diff --git a/polls/templates/base.html b/polls/templates/base.html
new file mode 100644
index 0000000..d41fa24
--- /dev/null
+++ b/polls/templates/base.html
@@ -0,0 +1,96 @@
+
+
+
+
-
{{ question.question_text }}
+{% block title %}{{ question.question_text }}{% endblock %}
+
+{% block content %}
+
+
{{ question.question_text }}
+
+
+
-
-
-
\ No newline at end of file
+
+
+
+{% endblock %}
diff --git a/polls/templates/polls/index.html b/polls/templates/polls/index.html
index 30ffbc6..1ea0364 100644
--- a/polls/templates/polls/index.html
+++ b/polls/templates/polls/index.html
@@ -1,45 +1,31 @@
+{% extends "base.html" %}
-
-
-
-
-
Polls
-
-
- {% if latest_question_list %}
-
+ {% else %}
+
+ No polls are available.
+ You can create polls in the admin panel
+
+ {% endif %}
+
+{% endblock %}
diff --git a/polls/templates/polls/results.html b/polls/templates/polls/results.html
index 9e9eab1..9c6d70a 100644
--- a/polls/templates/polls/results.html
+++ b/polls/templates/polls/results.html
@@ -1,92 +1,28 @@
-
-
-
-
-
-
-
-
Testapp
-
-
-
-
-
{{ question.question_text }}
-
-
Results
-
-
- {% for choice_text, choice_votes, choice_percent in choices %}
-
-
-
-
{{ choice_text }}
-
+{% block title %}{{ question.question_text }} Results{% endblock %}
+
+{% block content %}
+
{{ question.question_text }}
+
+
Results
+
+
+ {% for choice_text, choice_votes, choice_percent in choices %}
+
+
+
+
{{ choice_text }}
+
- {% endfor %}
-
+
{{ choice_votes }} vote{{ choice_votes|pluralize }}
-
-
-
\ No newline at end of file
+
+ {% endfor %}
+
+
+{% endblock %}