Mercurial > public > sg101
comparison gpp/templates/comments/comment.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | 8c1832b9d815 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% load url from future %} | |
1 {% load avatar_tags %} | 2 {% load avatar_tags %} |
2 <div class="comment" id="c{{ comment.id }}"> | 3 <div class="comment" id="c{{ comment.id }}"> |
3 <div class="comment-list">{{ forloop.counter }}.</div> | 4 <div class="comment-list">{{ forloop.counter }}.</div> |
4 <div class="comment-avatar"> | 5 <div class="comment-avatar"> |
5 <a href="{% url bio-view_profile username=comment.user.username%}">{% avatar comment.user %}</a> | 6 <a href="{% url 'bio-view_profile' username=comment.user.username%}">{% avatar comment.user %}</a> |
6 </div> | 7 </div> |
7 {% if comment.is_removed %} | 8 {% if comment.is_removed %} |
8 <div class="comment-text-removed"><p><em>This comment has been removed.</em></p></div> | 9 <div class="comment-text-removed"><p><em>This comment has been removed.</em></p></div> |
9 {% else %} | 10 {% else %} |
10 <div class="comment-text">{{ comment.html|safe }}</div> | 11 <div class="comment-text">{{ comment.html|safe }}</div> |
11 {% endif %} | 12 {% endif %} |
12 <div class="comment-details"> | 13 <div class="comment-details"> |
13 <a href="{% url bio-view_profile username=comment.user.username%}" | 14 <a href="{% url 'bio-view_profile' username=comment.user.username%}" |
14 title="View profile for {{ comment.user.username }}">{{ comment.user.username }}</a> | | 15 title="View profile for {{ comment.user.username }}">{{ comment.user.username }}</a> | |
15 {{ comment.creation_date|date:"d-M-Y H:i:s" }} | 16 {{ comment.creation_date|date:"d-M-Y H:i:s" }} |
16 {% if not comment.is_removed %} | 17 {% if not comment.is_removed %} |
17 | <a href="#" class="comment-flag" id="fc-{{ comment.id }}" | 18 | <a href="#" class="comment-flag" id="fc-{{ comment.id }}" |
18 title="Flag this comment as spam, abuse, or a violation of site rules."> | 19 title="Flag this comment as spam, abuse, or a violation of site rules."> |