Ghost/ghost/admin/app/components/members/list-item-column.hbs
Simon Backx b821c84b9e
Cleaned up member filters (#15784)
fixes https://github.com/TryGhost/Team/issues/2134
fixes https://github.com/TryGhost/Team/issues/2133

- Moved all filters to separate files to make the filter component a lot more readable and easier to maintain.
- Removed long switch style code from hbs for filter column values
- Filters for features that are disabled (such as open tracking, click tracking or member attribution) are now hidden when they are disabled
- The open rate column in the members table is now only visible if open tracking is enabled
2022-11-10 11:05:12 +01:00

16 lines
630 B
Handlebars

<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{this.columnName}}>
{{#if this.columnValue}}
<div class={{this.columnValue.class}}>
{{#if this.columnValue.icon}}
{{svg-jar this.columnValue.icon}}
{{/if}}
<span>{{this.columnValue.text}}</span>
{{#if this.columnValue.subtext}}
<div class="midlightgrey {{this.columnValue.subtextClass}}">{{this.columnValue.subtext}}</div>
{{/if}}
</div>
{{else}}
<span class="midlightgrey">-</span>
{{/if}}
</LinkTo>