fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delivering factors for tags/categories to the template
[prawokultury.git]
/
questions
/
templates
/
questions
/
question_list.html
diff --git
a/questions/templates/questions/question_list.html
b/questions/templates/questions/question_list.html
index
f458772
..
b6cea5a
100755
(executable)
--- a/
questions/templates/questions/question_list.html
+++ b/
questions/templates/questions/question_list.html
@@
-27,6
+27,13
@@
autorem szeregu publikacji naukowych poświęconych korzystaniu z
technologii informacyjno-komunikacyjnych oraz posiada wieloletnie
doświadczenie doradcze w tej tematyce.</p>
technologii informacyjno-komunikacyjnych oraz posiada wieloletnie
doświadczenie doradcze w tej tematyce.</p>
+Kategorie:
+<div>
+{% for category in tag_categories %}
+ <span style="font-size: {{category.factor}}em;">{{category}}</span>
+{% endfor %}
+</div>
+
Tematy:
{% if tag %}<a href=".">wszystkie</a>
{% else %}<strong>wszystkie</strong>
Tematy:
{% if tag %}<a href=".">wszystkie</a>
{% else %}<strong>wszystkie</strong>
@@
-47,12
+54,6
@@
Tematy:
<ul class='questions'>
{% for question in object_list %}
<li><a href="{{ question.get_absolute_url }}">{{ question }}</a>
<ul class='questions'>
{% for question in object_list %}
<li><a href="{{ question.get_absolute_url }}">{{ question }}</a>
- {% if question.tags.all.count %}
- <br/>Tematy:
- {% for tag in question.tags.all %}
- <a href="?tag={{ tag.slug }}">{{ tag }}</a>{% if not forloop.last %} / {% endif %}
- {% endfor %}
- {% endif %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>