comparison gpp/templates/comments/comment.html @ 14:7b6540b185d9

Added get_absolute_url() for my comments. Had to add a get_absolute_url() function for downloads in the process.
author Brian Neal <bgneal@gmail.com>
date Sat, 18 Apr 2009 19:14:17 +0000
parents dbd703f7d63a
children 82deb8cc59e9
comparison
equal deleted inserted replaced
13:777451a98f9d 14:7b6540b185d9
1 {% load avatar_tags %} 1 {% load avatar_tags %}
2 {% load markup %} 2 {% load markup %}
3 {% load smiley_tags %} 3 {% load smiley_tags %}
4 <li> 4 <li>
5 <div class="comment"> 5 <div class="comment" id="c{{ comment.id }}">
6 <div class="comment-avatar"> 6 <div class="comment-avatar">
7 <a href="{% url bio-view_profile username=comment.user.username%}">{% avatar comment.user %}</a> 7 <a href="{% url bio-view_profile username=comment.user.username%}">{% avatar comment.user %}</a>
8 </div> 8 </div>
9 {% if comment.is_removed %} 9 {% if comment.is_removed %}
10 <div class="comment-text-removed"><p>This comment has been removed.</p></div> 10 <div class="comment-text-removed"><p><em>This comment has been removed.</em></p></div>
11 {% else %} 11 {% else %}
12 <div class="comment-text">{{ comment.html|safe }}</div> 12 <div class="comment-text">{{ comment.html|safe }}</div>
13 {% endif %} 13 {% endif %}
14 <div class="comment-details"> 14 <div class="comment-details">
15 <a href="{% url bio-view_profile username=comment.user.username%}" 15 <a href="{% url bio-view_profile username=comment.user.username%}"