Ghost/ghost/admin/app/components/dashboard/charts/paid-mrr.hbs

40 lines
1.6 KiB
Handlebars
Raw Normal View History

<div class="gh-dashboard-minichart gh-dashboard-mrr">
<div class="gh-dashboard-content">
<div class="gh-dashboard-data">
<Dashboard::Parts::Metric
2022-05-12 14:20:44 +03:00
@label={{this.chartTitle}}
@value="{{this.currentMRRFormatted}}"
@trends={{this.hasTrends}}
@percentage={{this.mrrTrend}} />
</div>
<div class="gh-dashboard-chart">
2022-05-12 14:20:44 +03:00
{{#if this.loading}}
<div class="gh-dashboard-chart-loading">
2022-05-12 14:20:44 +03:00
<div class="gh-loading-spinner"></div>
</div>
2022-05-12 14:20:44 +03:00
{{else}}
<div class="gh-dashboard-chart-container">
<div class="gh-dashboard-chart-box">
2022-05-12 14:20:44 +03:00
<EmberChart
@type={{this.chartType}}
@data={{this.chartData}}
@options={{this.chartOptions}}
@height={{110}} />
</div>
2022-05-12 14:20:44 +03:00
<div id="gh-dashboard-mrr-tooltip" class="gh-dashboard-tooltip">
<div class="gh-dashboard-tooltip-label">
2022-05-12 14:20:44 +03:00
-
</div>
<div class="gh-dashboard-tooltip-value">
2022-05-12 14:20:44 +03:00
<span class="indicator line"></span>
<span class="value">-</span>
<span class="metric">MRR</span>
</div>
</div>
</div>
{{/if}}
</div>
</div>
</div>