feat(widget): Experience - add brand logo error msg

Close #1781
This commit is contained in:
George Cushen committed 2021-04-13 20:22:02 +01:00
1 parent 153cf5b780
commit ab8d28988e
1 file changed
+2 -1
@@ -30,9 +30,10 @@
<div class="card-body">
{{- if .company_logo}}
{{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}}
{{ if not $svg_icon }}{{ errorf "Brand logo not found at `media/icons/brands/%s.svg`" .company_logo }}{{end}}
<div class="d-flex align-content-start">
<div class="mr-2 mb-2">
{{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}}
{{- with .company_url}}<a href="{{.}}" target="_blank" rel="noopener">{{end -}}
<img src="{{ $svg_icon.RelPermalink }}" width="56px" height="56px" alt="{{.company | plainify}}">
{{- with .company_url}}</a>{{end -}}