Nedělat odkaz u lidí klikací, pokud url není uvedeno.

This commit is contained in:
Marek Nečada 2023-03-21 12:32:42 +02:00
parent 104191b791
commit 5dc7866d5c
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<div class="col-md-3 col-6">
<div class="user-card">
<img class="user-img" src="{{ .image }}" alt="" />
<a href="{{ .url }}" class="user-name">
<a {{ with .url }}href="{{ . }}"{{ end }} class="user-name">
{{ with .prefix }} {{ . }} {{ end }}
{{ .name }}{{ with .postfix }}, {{ . }} {{ end }}
</a>