mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +03:00
49 lines
1.6 KiB
Handlebars
49 lines
1.6 KiB
Handlebars
<div class="gh-dashboard5-title">
|
|
<h4>Email</h4>
|
|
</div>
|
|
|
|
<div {{did-insert this.loadCharts}} class="gh-dashboard5-insert">
|
|
<div class="gh-dashboard5-insert-item">
|
|
<Dashboard::v5::parts::ChartMetric
|
|
@label="Newsletter subscribers"
|
|
@value={{format-number this.dataSubscribers.total}}
|
|
@reverse={true}
|
|
/>
|
|
</div>
|
|
|
|
<div class="gh-dashboard5-insert-item">
|
|
<Dashboard::v5::parts::ChartMetric
|
|
@label="Emails sent over last 30 days"
|
|
@value={{format-number this.dataEmailsSent}}
|
|
@reverse={true}
|
|
/>
|
|
</div>
|
|
|
|
<div class="gh-dashboard5-insert-item">
|
|
<div class="gh-dashboard5-chart">
|
|
{{#if this.loading}}
|
|
<div class="gh-dashboard5-chart-loading" style={{html-safe (concat "height: " this.chartHeight "px;")}}/>
|
|
{{else}}
|
|
<div class="gh-dashboard5-chart-ticks">
|
|
<span>100%</span>
|
|
<span>75%</span>
|
|
<span>50%</span>
|
|
<span>25%</span>
|
|
</div>
|
|
<div class="gh-dashboard5-chart-container">
|
|
<EmberChart
|
|
@type={{this.chartType}}
|
|
@data={{this.chartData}}
|
|
@options={{this.chartOptions}}
|
|
@height={{this.chartHeight}} />
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<Dashboard::v5::parts::ChartMetric
|
|
@label="Open rate"
|
|
@value="{{this.currentOpenRate}}%"
|
|
@reverse={true}
|
|
/>
|
|
</div>
|
|
</div>
|