mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
a0c6fafba1
refs https://github.com/TryGhost/Team/issues/1932 refs https://github.com/TryGhost/Team/issues/1941 refs https://github.com/TryGhost/Team/issues/1904 refs https://github.com/TryGhost/Team/issues/1932 - updates attribution sources table design - updates member profile page design
48 lines
1.8 KiB
Handlebars
48 lines
1.8 KiB
Handlebars
<div class="gh-dashboard-metric {{if @center "is-center"}} {{if @reverse "is-reverse"}} {{if @large "is-large"}} {{if @embedded "is-embedded"}}">
|
|
<div class="gh-dashboard-metric-data">
|
|
{{#if @secondary}}
|
|
{{#if @value}}
|
|
<div class="gh-dashboard-metric-value {{if @secondary 'is-secondary'}}">
|
|
<span class="value">{{@value}}</span>
|
|
{{#if @trends}}
|
|
<Dashboard::Parts::Percentage @percentage={{@percentage}}/>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
<h5 class="gh-dashboard-metric-label {{if @secondary 'is-secondary'}}">
|
|
{{@label}}
|
|
</h5>
|
|
{{else}}
|
|
{{#if @reverse}}
|
|
{{#if @value}}
|
|
<div class="gh-dashboard-metric-value">
|
|
<span class="value">{{@value}}</span>
|
|
{{#if @trends}}
|
|
<Dashboard::Parts::Percentage @percentage={{@percentage}}/>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
<h5 class="gh-dashboard-metric-label">
|
|
{{@label}}
|
|
</h5>
|
|
{{else}}
|
|
<h5 class="gh-dashboard-metric-label">
|
|
{{@label}}
|
|
</h5>
|
|
{{#if @value}}
|
|
<div class="gh-dashboard-metric-value">
|
|
<span class="value">{{@value}}</span>
|
|
{{#if @trends}}
|
|
<Dashboard::Parts::Percentage @percentage={{@percentage}}/>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{#if @extra}}
|
|
<div class="gh-dashboard-metric-extra">
|
|
{{@extra}}
|
|
</div>
|
|
{{/if}}
|
|
</div> |