Changeset 1624

Show
Ignore:
Timestamp:
02/08/10 16:21:05 (7 months ago)
Author:
dane
Message:

mapnik.org: only show comments count if comments are enabled

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • www/mapnik.org/templates/news/entry_archive.html

    r732 r1624  
    1212{{ object.body }} 
    1313{% endautoescape %} 
    14     <p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }} | <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} comment{{ comment_count|pluralize }}</a></p> 
     14    <p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}{% if object.comments_enabled %} | <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} comment{{ comment_count|pluralize }}</a>{% endif %}</p> 
    1515{% endfor %} 
    1616