2022-08-31 08:15:13 +00:00
|
|
|
{{- $value := default 0 (.Get "value") -}}
|
2023-07-06 20:07:07 +00:00
|
|
|
{{- $label := default (printf "%v %%" $value) (.Get "label") -}}
|
2022-08-31 08:15:13 +00:00
|
|
|
{{- $title := .Get "title" -}}
|
|
|
|
{{- $icon := .Get "icon" -}}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="gblog-progress">
|
|
|
|
<div class="gblog-progress__label flex justify-between">
|
|
|
|
<div class="gblog-progress__label--name flex align-center">
|
|
|
|
{{ with $icon -}}
|
|
|
|
<svg class="gblog-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
|
|
|
|
{{- end }}
|
|
|
|
{{ with $title }}<span>{{ . }}</span>{{ end }}
|
|
|
|
</div>
|
2023-07-06 20:07:07 +00:00
|
|
|
<div>{{ $label }}</div>
|
2022-08-31 08:15:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="gblog-progress__wrap">
|
|
|
|
<div
|
|
|
|
class="gblog-progress__bar"
|
|
|
|
data-percent="{{ $value }}"
|
2023-07-06 20:07:07 +00:00
|
|
|
style="width: {{ $value }}%; max-width: 100%; min-width: 0"
|
2022-08-31 08:15:13 +00:00
|
|
|
></div>
|
|
|
|
</div>
|
|
|
|
</div>
|