UX: Don't show the username of the first user in the conversation

This commit is contained in:
Robin Ward 2019-04-08 16:39:37 -04:00
parent 914ada1c74
commit 32a0346069
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,3 @@
export default Ember.Component.extend({
showUsername: Ember.computed.gte("index", 1)
});

View File

@ -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}}

View File

@ -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'>