Monorepo for Tangled
0

Configure Feed

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

appview/pages: filetree symlinks render with correct icon

Signed-off-by: Jens Rømer Hesselbjerg <jh.roemer@gmail.com>

authored by

Jens Rømer Hesselbjerg and committed by
Tangled
(Jul 9, 2026, 6:09 PM +0300) 52c34c2f c661a193

+12 -2
+1 -1
appview/pages/templates/repo/index.html
··· 151 151 152 152 {{ if .IsFile }} 153 153 {{ $link = printf "/%s/%s/%s/%s" $.RepoInfo.FullName "blob" (urlquery $.Ref) .Name }} 154 - {{ $icon = "file" }} 154 + {{ $icon = cond .IsSymlink "file-symlink" "file" }} 155 155 {{ $iconStyle = "size-4" }} 156 156 {{ end }} 157 157
+1 -1
appview/pages/templates/repo/tree.html
··· 77 77 78 78 {{ if .IsFile }} 79 79 {{ $link = printf "/%s/%s/%s/%s/%s" $.RepoInfo.FullName "blob" (urlquery $.Ref) $.Path .Name }} 80 - {{ $icon = "file" }} 80 + {{ $icon = cond .IsSymlink "file-symlink" "file" }} 81 81 {{ $iconStyle = "size-4" }} 82 82 {{ end }} 83 83
+10
types/tree.go
··· 101 101 return m == filemode.Submodule 102 102 } 103 103 104 + func (t *NiceTree) IsSymlink() bool { 105 + m, err := t.FileMode() 106 + 107 + if err != nil { 108 + return false 109 + } 110 + 111 + return m == filemode.Symlink 112 + } 113 + 104 114 type LastCommitInfo struct { 105 115 Hash plumbing.Hash 106 116 Message string