{% comment %} vim:ft=htmldjango: This file contains the simple way to render a news item {% endcomment %} {% load news wl_markdown tagging_tags threadedcommentstags wlprofile custom_date %}

{# TODO: categories! #} {{ object.title }}

Posted by {{object.author|user_link}}
{% if object.has_image %} {{ object.image_alt }}
{% else %}
{% endif %} {{ object.body|wl_markdown:"safe" }}
{% get_comment_count for object as ccount %} {% tags_for_object object as tag_list %}
{{ ccount }} comments {% if perms.news %} {% if perms.news.post_can_add %}Add New Post{% endif %} {% if perms.news.post_can_edit %}| Edit{% endif %} {% if perms.news.post_can_delete %}| Delete{% endif %} {% endif %} {% if tag_list %} Tags: {% for tag in tag_list %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %}