UX: Don't show the username of the first user in the conversation
This commit is contained in:
parent
914ada1c74
commit
32a0346069
|
@ -0,0 +1,3 @@
|
|||
export default Ember.Component.extend({
|
||||
showUsername: Ember.computed.gte("index", 1)
|
||||
});
|
|
@ -1,5 +1,8 @@
|
|||
{{#if post}}
|
||||
<div class='reviewable-conversation-post'>
|
||||
{{#link-to 'user' post.user class="username"}}@{{post.user.username}}{{/link-to}} {{{post.excerpt}}}
|
||||
{{#if showUsername}}
|
||||
{{#link-to 'user' post.user class="username"}}@{{post.user.username}}{{/link-to}}
|
||||
{{/if}}
|
||||
{{{post.excerpt}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<tr>
|
||||
<td colspan='3'>
|
||||
<div class='reviewable-conversation'>
|
||||
{{#each rs.reviewable_conversation.conversation_posts as |p|}}
|
||||
{{reviewable-conversation-post post=p}}
|
||||
{{#each rs.reviewable_conversation.conversation_posts as |p index|}}
|
||||
{{reviewable-conversation-post post=p index=index}}
|
||||
{{/each}}
|
||||
<div class='controls'>
|
||||
<a href={{rs.reviewable_conversation.permalink}} class='btn btn-small'>
|
||||
|
|
Loading…
Reference in New Issue