mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
e5d5e359d7
refs: https://github.com/TryGhost/Team/issues/1531 - investigated how to make the layout not break on resize - using a width 99% hack to make chartjs react properly - redid the markup for the minicharts for more stable loading - added in a subtle gradient for the mrr minichart
37 lines
1.3 KiB
Handlebars
37 lines
1.3 KiB
Handlebars
<div class="gh-dashboard5-minichart gh-dashboard5-mrr">
|
|
<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-container">
|
|
<div class="gh-dashboard5-chart-box">
|
|
<EmberChart
|
|
@type={{this.chartType}}
|
|
@data={{this.chartData}}
|
|
@options={{this.chartOptions}}
|
|
@height={{130}} />
|
|
</div>
|
|
|
|
<div class="gh-dashboard5-chart-gradient"></div>
|
|
|
|
<div id="gh-dashboard5-mrr-tooltip" class="gh-dashboard5-tooltip">
|
|
<div class="gh-dashboard5-tooltip-label">
|
|
-
|
|
</div>
|
|
<div class="gh-dashboard5-tooltip-value">
|
|
-
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="gh-dashboard5-data">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label={{this.chartTitle}}
|
|
@value="{{this.currentMRRFormatted}}"
|
|
@trends={{this.hasTrends}}
|
|
@percentage={{this.mrrTrend}} />
|
|
</div>
|
|
</div>
|