init
This commit is contained in:
14
layouts/partials/town-status-icon.html
Normal file
14
layouts/partials/town-status-icon.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{/*
|
||||
Input: dict "status" "positive|neutral|negative" "icon" "fa-house" "title" "Mantelzorgwoning"
|
||||
*/}}
|
||||
|
||||
{{- $status := .status -}}
|
||||
{{- $icon := .icon -}}
|
||||
{{- $title := .title -}}
|
||||
|
||||
{{- $color := cond (eq $status "positive") "text-success" (cond (eq $status "neutral") "text-warning" "text-danger") -}}
|
||||
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<i class="fas {{ $icon }} me-2 {{ $color }}" aria-hidden="true"></i>
|
||||
<span class="status-label">{{ $title }}</span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user