Monorepo for Tangled tangled.org

appview: support star for sh.tangled.string #825

merged opened by boltless.me targeting master from sl/uzmtowmlwkvz
Labels
enhancement
assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m5w3y3yx7q22
+8 -8
Interdiff #3 #4
appview/models/string.go

This file has not been changed.

appview/pages/pages.go

This file has not been changed.

appview/pages/templates/fragments/starBtn.html

This file has not been changed.

appview/pages/templates/layouts/repobase.html

This file has not been changed.

+8 -8
appview/pages/templates/strings/string.html
··· 17 <span class="select-none">/</span> 18 <a href="/strings/{{ $ownerId }}/{{ .String.Rkey }}" class="font-bold">{{ .String.Filename }}</a> 19 </div> 20 - {{ if and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} 21 - <div class="flex gap-2 text-base"> 22 <a class="btn flex items-center gap-2 no-underline hover:no-underline p-2 group" 23 hx-boost="true" 24 href="/strings/{{ .String.Did }}/{{ .String.Rkey }}/edit"> ··· 37 <span class="hidden md:inline">delete</span> 38 {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} 39 </button> 40 - {{ template "fragments/starBtn" 41 - (dict "SubjectAt" .String.AtUri 42 - "IsStarred" .IsStarred 43 - "StarCount" .StarCount) }} 44 - </div> 45 - {{ end }} 46 </div> 47 <span> 48 {{ with .String.Description }}
··· 17 <span class="select-none">/</span> 18 <a href="/strings/{{ $ownerId }}/{{ .String.Rkey }}" class="font-bold">{{ .String.Filename }}</a> 19 </div> 20 + <div class="flex gap-2 text-base"> 21 + {{ if and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} 22 <a class="btn flex items-center gap-2 no-underline hover:no-underline p-2 group" 23 hx-boost="true" 24 href="/strings/{{ .String.Did }}/{{ .String.Rkey }}/edit"> ··· 37 <span class="hidden md:inline">delete</span> 38 {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} 39 </button> 40 + {{ end }} 41 + {{ template "fragments/starBtn" 42 + (dict "SubjectAt" .String.AtUri 43 + "IsStarred" .IsStarred 44 + "StarCount" .StarCount) }} 45 + </div> 46 </div> 47 <span> 48 {{ with .String.Description }}
appview/pages/templates/timeline/fragments/timeline.html

This file has not been changed.

appview/pages/templates/user/fragments/repoCard.html

This file has not been changed.

appview/state/star.go

This file has not been changed.

appview/strings/strings.go

This file has not been changed.

History

5 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview: support star for sh.tangled.string
3/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview: support star for sh.tangled.string
3/3 success
expand
expand 0 comments
1 commit
expand
appview: support star for sh.tangled.string
3/3 success
expand
expand 0 comments
1 commit
expand
appview: support star for sh.tangled.string
3/3 success
expand
expand 0 comments
1 commit
expand
appview: support star for sh.tangled.string
3/3 success
expand
expand 0 comments