Skip to content

Commit

Permalink
Show how many responses a tweet has and who responded first. Bug 612935.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed Dec 7, 2010
1 parent 88000d8 commit 7c2d811
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/customercare/templates/customercare/tweets.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
<a href="http://twitter.com/{{ tweet.user }}/status/{{ tweet.id }}" class="permalink" target="_blank">
<time datetime="{{ tweet.date|isotime }}">{{ tweet.date|utctimesince }} ago</time></a>
{% if tweet.replies %}
<a href="#" class="reply_count" data-count="{{ tweet.reply_count }}">{{
ngettext('{0} reply', '{0} replies', tweet.reply_count)|f(tweet.reply_count) }}</a>
<a href="#" class="reply_count" data-count="{{ tweet.reply_count }}">
{% if tweet.reply_count > 1 %}
{{ ngettext('{0} and {1} other replied', '{0} and {1} others replied',
tweet.reply_count - 1)|f(tweet.replies[0].user, tweet.reply_count - 1) }}
{% else %}
{{ '{0} replied'|f(tweet.replies[0].user) }}
{% endif %}
</a>
{% elif settings.CC_SHOW_REPLIES %}
<span class="reply_count">0 replies</span>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions media/js/customercare.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
}
$(this).toggleClass('opened');

$(this).blur();
e.preventDefault();
});

Expand Down

0 comments on commit 7c2d811

Please sign in to comment.