comparison gpp/templates/forums/display_post.html @ 120:f8f4514b806a

Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author Brian Neal <bgneal@gmail.com>
date Sun, 25 Oct 2009 21:55:28 +0000
parents a3633f39f3ce
children 98d658afd4bf
comparison
equal deleted inserted replaced
119:b8f1dcc9fae4 120:f8f4514b806a
11 </td> 11 </td>
12 <td class="forum-post-body"> 12 <td class="forum-post-body">
13 <div class="forum-post-info quiet"> 13 <div class="forum-post-info quiet">
14 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %} 14 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %}
15 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> 15 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
16 Posted on {{ post.creation_date|date:"M d, Y H:i" }} 16 Posted on {% forum_date post.creation_date user %}
17 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} 17 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}
18 </div> 18 </div>
19 <div class="forum-post-body"> 19 <div class="forum-post-body">
20 {{ post.html|safe }} 20 {{ post.html|safe }}
21 {% if post.has_been_edited %} 21 {% if post.has_been_edited %}