footer added
[koed-quiz.git] / apps / quiz / templatetags / quiz_tags.py
diff --git a/apps/quiz/templatetags/quiz_tags.py b/apps/quiz/templatetags/quiz_tags.py
new file mode 100755 (executable)
index 0000000..2790ae2
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# This file is part of KOED-Quiz, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django import template
+from django.utils.safestring import mark_safe
+from quiz.models import Quiz
+
+register = template.Library()
+
+
+@register.simple_tag
+def quiz_footer():
+    return mark_safe(Quiz.current().footer)