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}}
|
{{#if post}}
|
||||||
<div class='reviewable-conversation-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>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan='3'>
|
<td colspan='3'>
|
||||||
<div class='reviewable-conversation'>
|
<div class='reviewable-conversation'>
|
||||||
{{#each rs.reviewable_conversation.conversation_posts as |p|}}
|
{{#each rs.reviewable_conversation.conversation_posts as |p index|}}
|
||||||
{{reviewable-conversation-post post=p}}
|
{{reviewable-conversation-post post=p index=index}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<a href={{rs.reviewable_conversation.permalink}} class='btn btn-small'>
|
<a href={{rs.reviewable_conversation.permalink}} class='btn btn-small'>
|
||||||
|
|
Loading…
Reference in New Issue