mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
b821c84b9e
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
16 lines
630 B
Handlebars
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>
|