Experimental browser for the Atmosphere
{ "uri": "at://did:plc:rkm6m4dsc4da2yzdlvxorhf3/li.plonk.paste/3ljkswpierc2j", "cid": "bafyreigwv57wnlczoju2d5igh75oqcwvezd2d6fy4zbc6w32nkdiaf5xre", "value": { "code": "diff --git i/appview/pages/templates/repo/tree.html w/appview/pages/templates/repo/tree.html\r\nindex 0434a80..c093251 100644\r\n--- i/appview/pages/templates/repo/tree.html\r\n+++ w/appview/pages/templates/repo/tree.html\r\n@@ -36,34 +36,17 @@\r\n </div>\r\n \r\n {{ range .Files }}\r\n- {{ if not .IsFile }}\r\n <div class=\"{{ $containerstyle }}\">\r\n <div class=\"flex justify-between items-center\">\r\n- <a href=\"/{{ $.BaseTreeLink }}/{{ .Name }}\" class=\"{{ $linkstyle }}\">\r\n+ <a href=\"/{{ if .IsFile }}{{ $.BaseBlobLink }}{{ else }}{{ $.BaseTreeLink }}{{ end }}/{{ .Name }}\" class=\"{{ $linkstyle }}\">\r\n <div class=\"flex items-center gap-2\">\r\n- <i class=\"w-3 h-3 fill-current\" data-lucide=\"folder\"></i>{{ .Name }}\r\n+ <i {{ if .IsFile }}class=\"w-3 h-3\" data-lucide=\"file\"{{ else }}class=\"w-3 h-3 fill-current\" data-lucide=\"folder\"{{ end }}></i>{{ .Name }}\r\n </div>\r\n </a>\r\n <time class=\"text-xs text-gray-500\">{{ timeFmt .LastCommit.Author.When }}</time>\r\n </div>\r\n </div>\r\n {{ end }}\r\n- {{ end }}\r\n-\r\n- {{ range .Files }}\r\n- {{ if .IsFile }}\r\n- <div class=\"{{ $containerstyle }}\">\r\n- <div class=\"flex justify-between items-center\">\r\n- <a href=\"/{{ $.BaseBlobLink }}/{{ .Name }}\" class=\"{{ $linkstyle }}\">\r\n- <div class=\"flex items-center gap-2\">\r\n- <i class=\"w-3 h-3\" data-lucide=\"file\"></i>{{ .Name }}\r\n- </div>\r\n- </a>\r\n- <time class=\"text-xs text-gray-500\">{{ timeFmt .LastCommit.Author.When }}</time>\r\n- </div>\r\n- </div>\r\n- {{ end }}\r\n- {{ end }}\r\n </div>\r\n </main>\r\n {{end}}\r\n", "lang": "plaintext", "$type": "li.plonk.paste", "title": "@tangled.sh/core treeview template simplification", "shortUrl": "LY", "createdAt": "2025-03-04T15:49:54.401Z" } }