diff --git a/appview/pages/templates/user/fragments/picLink.html b/appview/pages/templates/user/fragments/picLink.html index b4e7c4e9..6fc7949c 100644 --- a/appview/pages/templates/user/fragments/picLink.html +++ b/appview/pages/templates/user/fragments/picLink.html @@ -44,7 +44,6 @@ popovertarget="vouch-modal-{{ normalizeForHtmlId $vr.SubjectDid.String }}" popovertargetaction="toggle" class="absolute -bottom-0.5 -right-0.5 w-1/2 h-1/2 cursor-pointer" - title="{{ template "user/fragments/vouchTooltip" $vr }}"> {{ if $vr.IsDirectVouch }} {{ template "fragments/icons/shield-direct-vouch" "w-full h-full" }} {{ else if $vr.IsDirectDenounce }} diff --git a/appview/pages/templates/user/fragments/vouchTooltip.html b/appview/pages/templates/user/fragments/vouchTooltip.html deleted file mode 100644 index f043751f..00000000 --- a/appview/pages/templates/user/fragments/vouchTooltip.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ define "user/fragments/vouchTooltip" }} - {{- $vr := . -}} - {{- if not $vr.IsEmpty -}} - {{- $networkPart := "" -}} - {{- if and (gt $vr.VouchStrength 0) (eq $vr.DenounceStrength 0) -}} - {{- $networkPart = printf "%s from your network vouched for this user." (plural $vr.VouchStrength "person" "people") -}} - {{- else if and (gt $vr.DenounceStrength 0) (eq $vr.VouchStrength 0) -}} - {{- $networkPart = printf "%s from your network denounced this user." (plural $vr.DenounceStrength "person" "people") -}} - {{- else if and (eq $vr.DenounceStrength 0) (eq $vr.VouchStrength 0) -}} - {{- $networkPart = "" -}} - {{- else -}} - {{- $networkPart = printf "%s and %s from your network." (plural $vr.VouchStrength "vouch" "vouches") (plural $vr.DenounceStrength "denounce" "") -}} - {{- end -}} - {{- $direct := $vr.GetDirectVouch -}} - {{- if $direct -}} - {{- if $direct.IsVouch -}} - You vouched for {{ resolve $vr.SubjectDid.String }} {{ relTimeFmt $direct.CreatedAt }}. {{ $networkPart }} - {{- else -}} - You denounced {{ resolve $vr.SubjectDid.String }} {{ relTimeFmt $direct.CreatedAt }}. {{ $networkPart }} - {{- end -}} - {{- else -}} - {{- $networkPart -}}. - {{- end -}} - {{- end -}} -{{ end }}