fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable questions tagging.
[prawokultury.git]
/
questions
/
templates
/
questions
/
question_detail.html
diff --git
a/questions/templates/questions/question_detail.html
b/questions/templates/questions/question_detail.html
index
5c6535a
..
dea7e14
100755
(executable)
--- a/
questions/templates/questions/question_detail.html
+++ b/
questions/templates/questions/question_detail.html
@@
-1,14
+1,22
@@
{% extends "base.html" %}
{% load url from future %}
{% extends "base.html" %}
{% load url from future %}
-{% block "titleextra" %}{{ question }} :: {% endblock %}
+{% block "titleextra" %}{{ question
|linebreaksbr
}} :: {% endblock %}
{% block "body" %}
{% block "body" %}
-<h1>{{ question }}</h1>
+<h1>{{ question
|linebreaksbr
}}</h1>
<div class="normal">
<div class="normal">
+{% if question.tags.all.count %}
+<p>Tematy:
+{% for tag in question.tags.all %}
+ <a href="{% url 'questions' %}?tag={{ tag.slug }}">{{ tag }}</a>{% if not forloop.last %} / {% endif %}
+{% endfor %}
+{% endif %}
+</p>
+
{{ question.answer }}
<p><a href="{% url 'questions' %}">Wróć do listy pytań.</a></p>
</div>
{{ question.answer }}
<p><a href="{% url 'questions' %}">Wróć do listy pytań.</a></p>
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}