Fixing multiple public comments on blurblog rendering issue.

This commit is contained in:
Samuel Clay 2012-06-29 23:21:28 -07:00
parent d7f565ea1c
commit 5e71a75d10
3 changed files with 3 additions and 2 deletions

View file

@ -1256,7 +1256,6 @@
// ==================
open_social_stories: function(feed_id, options) {
debugger;
// console.log(["open_social_stories", feed_id, options]);
options = options || {};
if (_.isNumber(feed_id)) feed_id = "social:" + feed_id;

View file

@ -20,7 +20,7 @@ NEWSBLUR.Views.SocialPageComments = Backbone.View.extend({
"class": 'NB-story-comments-public-header-wrapper'
}, this.make('div', {
"class": 'NB-story-comments-public-header'
}, Inflector.pluralize(' public comment', $template.length, true)));
}, Inflector.pluralize(' public comment', $('.NB-story-comment', $template).length, true)));
this.$(".NB-story-comments-public-teaser-wrapper").replaceWith($template);
$template.before($header);

View file

@ -1,5 +1,6 @@
{% load social_tags %}
<div class="NB-comments-body">
{% for comment in story.comments %}
<div class="NB-story-comment">
<a href="{{ comment.user.feed_link }}" class="NB-user-avatar {% if comment.source_user_id %}NB-story-comment-reshare{% endif %}">
@ -38,3 +39,4 @@
{% endif %}
</div>
{% endfor %}
</div>