Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

.

Signed-off-by: oppiliappan <me@oppi.li>

+22 -2
+5
appview/issues/issues.go
··· 127 127 return 128 128 } 129 129 130 + var vouchRelationship *models.VouchRelationship 131 + if user != nil { 132 + vouchRelationship, err := db.GetVouchRelationship(rp.db, user.Did, issue.Did) 133 + } 134 + 130 135 defs := make(map[string]*models.LabelDefinition) 131 136 for _, l := range labelDefs { 132 137 defs[l.AtUri().String()] = &l
+17 -2
appview/pages/templates/user/fragments/picLink.html
··· 1 1 {{ define "user/fragments/picLink" }} 2 2 {{ $did := index . 0 }} 3 3 {{ $classes := index . 1 }} 4 + {{ $vouchRelation := index . 2 }} 4 5 {{ $handle := resolve $did }} 5 - <a href="/{{ $handle }}" title="{{ $handle }}"> 6 + {{ $isVouched := false }} 7 + {{ $isDenounced := false }} 8 + {{ if $vouchRelation }} 9 + {{ if $vouchRelation.IsDirectVouch }} 10 + {{ $isVouched = true }} 11 + {{ else if $vouchRelation.IsDirectDenounce }} 12 + {{ $isDenounced = true }} 13 + {{ end }} 14 + {{ end }} 15 + <a href="/{{ $handle }}" title="{{ $handle }}" class="relative inline-block"> 6 16 <img 7 17 src="{{ tinyAvatar $did }}" 8 18 alt="" 9 - class="rounded-full border border-gray-300 dark:border-gray-700 {{ $classes }}" 19 + class="rounded-full {{ if $isVouched }}border-2 border-green-500{{ else if $isDenounced }}border-2 border-red-500{{ else }}border border-gray-300 dark:border-gray-700{{ end }} {{ $classes }}" 10 20 /> 21 + {{ if $isVouched }} 22 + <span class="absolute bottom-0 right-0">{{ i "shield" "size-3 text-green-500" }}</span> 23 + {{ else if $isDenounced }} 24 + <span class="absolute bottom-0 right-0">{{ i "shield" "size-3 text-red-500" }}</span> 25 + {{ end }} 11 26 </a> 12 27 {{ end }}