2022-04-11 19:17:31 +03:00
|
|
|
<div class="gh-dashboard5-metric {{if @center "is-center"}} {{if @reverse "is-reverse"}} {{if @large "is-large"}}">
|
2022-04-06 20:11:46 +03:00
|
|
|
<div class="gh-dashboard5-metric-data">
|
2022-04-20 15:43:11 +03:00
|
|
|
{{#if @secondary}}
|
2022-04-08 19:49:11 +03:00
|
|
|
{{#if @value}}
|
2022-04-20 15:43:11 +03:00
|
|
|
<div class="gh-dashboard5-metric-value {{if @secondary 'is-secondary'}}">
|
2022-04-08 19:49:11 +03:00
|
|
|
{{@value}}
|
2022-04-11 19:17:31 +03:00
|
|
|
{{#if @trends}}
|
2022-04-12 15:09:00 +03:00
|
|
|
<Dashboard::v5::Parts::Percentage @percentage={{@percentage}}/>
|
2022-04-11 19:17:31 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-04-08 19:49:11 +03:00
|
|
|
{{/if}}
|
2022-04-20 15:43:11 +03:00
|
|
|
<h5 class="gh-dashboard5-metric-label {{if @secondary 'is-secondary'}}">
|
2022-04-08 19:49:11 +03:00
|
|
|
{{@label}}
|
|
|
|
</h5>
|
|
|
|
{{else}}
|
2022-04-20 15:43:11 +03:00
|
|
|
{{#if @reverse}}
|
|
|
|
{{#if @value}}
|
|
|
|
<div class="gh-dashboard5-metric-value">
|
|
|
|
{{@value}}
|
|
|
|
{{#if @trends}}
|
2022-04-12 15:09:00 +03:00
|
|
|
<Dashboard::v5::Parts::Percentage @percentage={{@percentage}}/>
|
2022-04-11 19:17:31 +03:00
|
|
|
{{/if}}
|
2022-04-20 15:43:11 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<h5 class="gh-dashboard5-metric-label">
|
|
|
|
{{@label}}
|
|
|
|
</h5>
|
|
|
|
{{else}}
|
|
|
|
<h5 class="gh-dashboard5-metric-label">
|
|
|
|
{{@label}}
|
|
|
|
</h5>
|
|
|
|
{{#if @value}}
|
|
|
|
<div class="gh-dashboard5-metric-value">
|
|
|
|
{{@value}}
|
|
|
|
{{#if @trends}}
|
|
|
|
<Dashboard::v5::Parts::Percentage @percentage={{@percentage}}/>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-04-08 19:49:11 +03:00
|
|
|
{{/if}}
|
2022-04-06 20:11:46 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{#if @extra}}
|
|
|
|
<div class="gh-dashboard5-metric-extra">
|
|
|
|
{{@extra}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|