{{ post.text|linebreaks }}
-- {% for tag in post.tags.all %} - {{ tag.name }}, - {% endfor %} -
-+ Tags: {% for tag in post.tags.all %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %}
{{ post.author }}
-diff --git a/application/templates/post_list.html b/application/templates/post_list.html index cd0c6b7..b363d69 100644 --- a/application/templates/post_list.html +++ b/application/templates/post_list.html @@ -1,4 +1,6 @@ -{% extends 'base.html' %} {% block content %} {% for post in posts %} {% load taggit_templatetags2_tags %} +{% extends 'base.html' %} {% block content %} +{% if tag %} Posts tagged with "{{ tag.name }}" {% endif %} +{% for post in posts %} {% load taggit_templatetags2_tags %}
{{ post.text|linebreaks }}
-- {% for tag in post.tags.all %} - {{ tag.name }}, - {% endfor %} -
-+ Tags: {% for tag in post.tags.all %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %}
{{ post.author }}
-