Changeset 420:ab00d78f4f0e


Ignore:
Timestamp:
Mar 24, 2012 11:38:38 AM (15 months ago)
Author:
slav0nic <slav0nic0@…>
Branch:
stable
Message:

0 if reputation table does't exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • djangobb_forum/templates/djangobb_forum/topic.html

    r396 r420  
    6565                                                                        <a href="{% url djangobb:reputation post.user.username %}?action=plus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_add.gif" alt="+" /></a>&nbsp;&nbsp;<strong>{{ post.user.forum_profile.reply_total }}&nbsp;&nbsp;</strong><a href="{% url djangobb:reputation post.user.username %}?action=minus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_minus.gif" alt="-" /></a> 
    6666                                                                {% else %} 
    67                                                                         <strong>{{ post.user.forum_profile.reply_total }}</strong> 
     67                                                                        <strong>{{ post.user.forum_profile.reply_total|default_if_none: "0" }}</strong> 
    6868                                                                {% endif %} 
    6969                                                                </dd> 
Note: See TracChangeset for help on using the changeset viewer.