UX: do not show redundant user count
UX: add spacing between +member_count and "more"
This commit is contained in:
parent
12544c02c1
commit
8d2908dd9e
|
@ -27,11 +27,6 @@ export default Component.extend(CardContentsBase, CleansUp, {
|
|||
viewingTopic: match("currentPath", /^topic\./),
|
||||
|
||||
showMoreMembers: gt("moreMembersCount", 0),
|
||||
hasMembersOrIsMember: or(
|
||||
"group.members",
|
||||
"group.is_group_owner_display",
|
||||
"group.is_group_user"
|
||||
),
|
||||
|
||||
group: null,
|
||||
|
||||
|
|
|
@ -49,28 +49,8 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasMembersOrIsMember}}
|
||||
<div class="card-row third-row">
|
||||
<div class="metadata">
|
||||
<h3>
|
||||
<span class="desc">
|
||||
{{i18n "groups.user_count"}}
|
||||
</span>
|
||||
{{group.user_count}}
|
||||
</h3>
|
||||
<h3>
|
||||
{{#if group.is_group_owner_display}}
|
||||
{{i18n "groups.index.is_group_owner"}}
|
||||
{{else if group.is_group_user}}
|
||||
{{i18n "groups.index.is_group_user"}}
|
||||
{{/if}}
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if group.members}}
|
||||
<div class="card-row fourth-row">
|
||||
<div class="card-row third-row">
|
||||
<div class="members metadata">
|
||||
{{#each group.members as |user|}}
|
||||
<a href {{action "showUser" user}} class="card-tiny-avatar">{{bound-avatar user "tiny"}}</a>
|
||||
|
|
Loading…
Reference in New Issue