FIX: Missing styling for embedded reply

This commit is contained in:
Robin Ward 2014-11-11 11:17:39 -05:00
parent a566657d7a
commit af71326a9c
2 changed files with 9 additions and 15 deletions

View File

@ -84,7 +84,15 @@
{{/if}}
{{view 'post-menu' post=this adminMenu=view.adminMenu}}
</div>
{{view 'replies' content=replies}}
{{#if replies}}
<section class='embedded-posts bottom'>
{{#each replies}}
{{view 'embedded-post' content=this}}
{{/each}}
</section>
{{/if}}
{{discourse-action-history post=this}}
{{view 'topic-map-container' post=this topic=controller.model}}
</div>

View File

@ -1,14 +0,0 @@
/**
This view is used for rendering a list of replies below a post
@class RepliesView
@extends Ember.CollectionView
@namespace Discourse
@module Discourse
**/
export default Ember.CollectionView.extend({
tagName: 'section',
classNameBindings: [':embedded-posts', ':bottom', 'hidden'],
itemViewClass: 'embedded-post',
hidden: Em.computed.equal('content.length', 0)
});