Mercurial > public > sg101
comparison gpp/templates/forums/display_post.html @ 121:98d658afd4bf
Forums: display signature on posts. Display icons for PM and email (if not hidden) on each post.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 27 Oct 2009 02:46:01 +0000 |
parents | f8f4514b806a |
children | b4305e18d3af |
comparison
equal
deleted
inserted
replaced
120:f8f4514b806a | 121:98d658afd4bf |
---|---|
5 <a name="p{{ post.id }}"></a> | 5 <a name="p{{ post.id }}"></a> |
6 <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br /> | 6 <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br /> |
7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a> | 7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a> |
8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> | 8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> |
9 Posts: {{ post.user_profile.forum_post_count }}<br /> | 9 Posts: {{ post.user_profile.forum_post_count }}<br /> |
10 {% if post.user_profile.location %} | |
10 Location: {{ post.user_profile.location }}<br /> | 11 Location: {{ post.user_profile.location }}<br /> |
12 {% endif %} | |
13 {% if user.is_authenticated %} | |
14 <p> | |
15 <a href="{% url messages-compose_to post.user.username %}"> | |
16 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message to {{ post.user.username }}" /></a> | |
17 {% if not post.user_profile.hide_email %}<a href="mailto:{{ post.user.email }}"> | |
18 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %} | |
19 </p> | |
20 {% endif %} | |
11 </td> | 21 </td> |
12 <td class="forum-post-body"> | 22 <td class="forum-post-body"> |
13 <div class="forum-post-info quiet"> | 23 <div class="forum-post-info quiet"> |
14 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %} | 24 {% 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> | 25 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> |
16 Posted on {% forum_date post.creation_date user %} | 26 Posted on {% forum_date post.creation_date user %} |
17 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} | 27 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} |
18 </div> | 28 </div> |
19 <div class="forum-post-body"> | 29 <div class="forum-post-body"> |
20 {{ post.html|safe }} | 30 {{ post.html|safe }} |
31 {% if post.user_profile.signature_html %} | |
32 —{{ post.user_profile.signature_html|safe }} | |
33 {% endif %} | |
21 {% if post.has_been_edited %} | 34 {% if post.has_been_edited %} |
22 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p> | 35 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p> |
23 {% endif %} | 36 {% endif %} |
24 </div> | 37 </div> |
25 <div class="forum-post-info-tools"> | 38 <div class="forum-post-info-tools"> |