mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 11:15:14 +08:00
DEV: add class names to group directory table (#21393)
This commit is contained in:
parent
5e5a67ef88
commit
f705e6d367
|
@ -86,17 +86,19 @@
|
||||||
@asc={{this.asc}}
|
@asc={{this.asc}}
|
||||||
@field="username_lower"
|
@field="username_lower"
|
||||||
@labelKey="username"
|
@labelKey="username"
|
||||||
@class="username"
|
@class="directory-table__column-header--username username"
|
||||||
@automatic={{true}}
|
@automatic={{true}}
|
||||||
@colspan="2"
|
@colspan="2"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{#if this.canManageGroup}}
|
{{#if this.canManageGroup}}
|
||||||
<div class="directory-table__column-header"></div>
|
<div
|
||||||
|
class="directory-table__column-header directory-table__column-header--can-manage"
|
||||||
|
></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<TableHeaderToggle
|
<TableHeaderToggle
|
||||||
@class="directory-table__column-header"
|
@class="directory-table__column-header--added"
|
||||||
@order={{this.order}}
|
@order={{this.order}}
|
||||||
@asc={{this.asc}}
|
@asc={{this.asc}}
|
||||||
@field="added_at"
|
@field="added_at"
|
||||||
|
@ -104,7 +106,7 @@
|
||||||
@automatic={{true}}
|
@automatic={{true}}
|
||||||
/>
|
/>
|
||||||
<TableHeaderToggle
|
<TableHeaderToggle
|
||||||
@class="directory-table__column-header"
|
@class="directory-table__column-header--last-posted"
|
||||||
@order={{this.order}}
|
@order={{this.order}}
|
||||||
@asc={{this.asc}}
|
@asc={{this.asc}}
|
||||||
@field="last_posted_at"
|
@field="last_posted_at"
|
||||||
|
@ -112,7 +114,7 @@
|
||||||
@automatic={{true}}
|
@automatic={{true}}
|
||||||
/>
|
/>
|
||||||
<TableHeaderToggle
|
<TableHeaderToggle
|
||||||
@class="directory-table__column-header"
|
@class="directory-table__column-header--last-seen"
|
||||||
@order={{this.order}}
|
@order={{this.order}}
|
||||||
@asc={{this.asc}}
|
@asc={{this.asc}}
|
||||||
@field="last_seen_at"
|
@field="last_seen_at"
|
||||||
|
@ -121,7 +123,9 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{#if this.canManageGroup}}
|
{{#if this.canManageGroup}}
|
||||||
<div class="directory-table__column-header"></div>
|
<div
|
||||||
|
class="directory-table__column-header directory-table__column-header--member-settings"
|
||||||
|
></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</:header>
|
</:header>
|
||||||
|
|
||||||
|
@ -129,7 +133,10 @@
|
||||||
{{#each this.model.members as |m|}}
|
{{#each this.model.members as |m|}}
|
||||||
<div class="directory-table__row">
|
<div class="directory-table__row">
|
||||||
|
|
||||||
<div class="directory-table__cell group-member" colspan="2">
|
<div
|
||||||
|
class="directory-table__cell directory-table__cell--username group-member"
|
||||||
|
colspan="2"
|
||||||
|
>
|
||||||
{{#if this.canManageGroup}}
|
{{#if this.canManageGroup}}
|
||||||
{{#if this.isBulk}}
|
{{#if this.isBulk}}
|
||||||
<Input
|
<Input
|
||||||
|
@ -148,7 +155,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if this.canManageGroup}}
|
{{#if this.canManageGroup}}
|
||||||
<div class="directory-table__cell group-owner">
|
<div
|
||||||
|
class="directory-table__cell directory-table__cell--can-manage group-owner"
|
||||||
|
>
|
||||||
{{#if (or m.owner m.primary)}}
|
{{#if (or m.owner m.primary)}}
|
||||||
<span class="directory-table__label">
|
<span class="directory-table__label">
|
||||||
<span>{{i18n "groups.members.status"}}</span>
|
<span>{{i18n "groups.members.status"}}</span>
|
||||||
|
@ -166,7 +175,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="directory-table__cell">
|
<div class="directory-table__cell directory-table__cell--added">
|
||||||
<span class="directory-table__label">
|
<span class="directory-table__label">
|
||||||
<span>{{i18n "groups.member_added"}}</span>
|
<span>{{i18n "groups.member_added"}}</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -178,7 +187,8 @@
|
||||||
class="directory-table__cell{{unless
|
class="directory-table__cell{{unless
|
||||||
m.last_posted_at
|
m.last_posted_at
|
||||||
'--empty'
|
'--empty'
|
||||||
}}"
|
}}
|
||||||
|
directory-table__cell--last-posted"
|
||||||
>
|
>
|
||||||
{{#if m.last_posted_at}}
|
{{#if m.last_posted_at}}
|
||||||
<span class="directory-table__label">
|
<span class="directory-table__label">
|
||||||
|
@ -190,7 +200,8 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="directory-table__cell{{unless m.last_seen_at '--empty'}}"
|
class="directory-table__cell{{unless m.last_seen_at '--empty'}}
|
||||||
|
directory-table__cell--last-seen"
|
||||||
>
|
>
|
||||||
{{#if m.last_seen_at}}
|
{{#if m.last_seen_at}}
|
||||||
<span class="directory-table__label">
|
<span class="directory-table__label">
|
||||||
|
@ -202,7 +213,9 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{#if this.canManageGroup}}
|
{{#if this.canManageGroup}}
|
||||||
<div class="directory-table__cell member-settings">
|
<div
|
||||||
|
class="directory-table__cell directory-table__cell--member-settings member-settings"
|
||||||
|
>
|
||||||
<GroupMemberDropdown
|
<GroupMemberDropdown
|
||||||
@member={{m}}
|
@member={{m}}
|
||||||
@canAdminGroup={{this.model.can_admin_group}}
|
@canAdminGroup={{this.model.can_admin_group}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user