Commits

Slava Bacherikov committed 57144af

Show tags in news

Comments (0)

Files changed (1)

jabber_main/templates/news.html

         <section class="list_news">
             <a class="news_title" href="{{ news_item.get_absolute_url }}">{{ news_item.title }}</a>
             {{ news_item.body }}
+            {% with tags=news_item.tags.all %}
+            {% if tags %}
+            <div class="tags">
+            <i class="icon-tags"></i>
+                {% for tag in tags %}<a href="">{{ tag }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
+            </div>
+            {% endif %}
+            {% endwith %}
         </section>
     
     {% endfor %}