mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
c616f56a2a
Refs https://www.notion.so/ghost/Member-activity-improvements-247080c54dac4ebf86d10b38508d2a19
47 lines
1.5 KiB
Handlebars
47 lines
1.5 KiB
Handlebars
<div
|
|
class="gh-feedback-events-feed"
|
|
{{on "mouseleave" this.onMouseleave}}
|
|
>
|
|
<div class="gh-feedback-events-feed-container">
|
|
<EmberChart
|
|
@type='doughnut'
|
|
@data={{this.chartData}}
|
|
@options={{this.chartOptions}}
|
|
@height={{220}}
|
|
@width={{220}}
|
|
/>
|
|
</div>
|
|
|
|
<div
|
|
class="gh-feedback-events-tooltip"
|
|
id="gh-feedback-events-tooltip"
|
|
{{did-insert this.onTooltipInsert}}
|
|
>
|
|
<div>
|
|
<div class="gh-feedback-events-tooltip-body">
|
|
<span
|
|
class="gh-feedback-events-tooltip-badge"
|
|
style={{html-safe (concat "background-color: " this.tooltipData.color)}}
|
|
></span>
|
|
<span class="gh-feedback-events-tooltip-info">{{this.tooltipData.value}}</span>
|
|
<span>{{this.tooltipData.percent}}%</span>
|
|
</div>
|
|
|
|
<span class="gh-feedback-events-tooltip-metric">{{this.tooltipData.label}}</span>
|
|
</div>
|
|
|
|
{{#if (and this.tooltipData.href (not (feature "suppressionList")))}}
|
|
<div class="gh-feedback-events-tooltip-footer">
|
|
<LinkTo
|
|
class="gh-post-activity-feed-pagination-link gh-post-activity-chart-link"
|
|
@route="members"
|
|
@query={{this.tooltipData.href}}
|
|
>
|
|
{{svg-jar "filter"}}
|
|
<span>View members</span>
|
|
</LinkTo>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|