fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get current quiz by domain from request.
[koed-quiz.git]
/
apps
/
quiz
/
templates
/
quiz
/
home.html
diff --git
a/apps/quiz/templates/quiz/home.html
b/apps/quiz/templates/quiz/home.html
index
34efdd7
..
ca67f39
100644
(file)
--- a/
apps/quiz/templates/quiz/home.html
+++ b/
apps/quiz/templates/quiz/home.html
@@
-2,16
+2,16
@@
{% load i18n %}
{% load i18n %}
-{% block "title" %}{{ quiz.name }}{% endblock %}
-{% block "header" %}{{ quiz.name }}{% endblock %}
+{% block "title" %}{{
request.current_
quiz.name }}{% endblock %}
+{% block "header" %}{{
request.current_
quiz.name }}{% endblock %}
{% block "body" %}
<div>
{% block "body" %}
<div>
-{{ quiz.description|safe }}
+{{
request.current_
quiz.description|safe }}
</div>
</div>
-<a class='big-button' href="{{ quiz.get_absolute_url }}">{% trans "Start the test!" %}</a>
+<a class='big-button' href="{{
request.current_
quiz.get_absolute_url }}">{% trans "Start the test!" %}</a>
{% endblock %}
{% endblock %}