forked from tangled.org/core
Monorepo for Tangled

fix pull templates when not logged-in; pin lucide

Changed files
+24 -23
appview
pages
templates
repo
pulls
+20 -19
appview/pages/templates/repo/pulls/pull.html
··· 152 152 153 153 {{ with $rootObj }} 154 154 {{ if .LoggedInUser }} 155 - <div class="bg-white rounded drop-shadow-sm py-2 px-4 relative w-full md:w-96"> 156 - <div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div> 157 - <div class="text-sm text-gray-500"> 158 - {{ index .DidHandleMap .LoggedInUser.Did }} 155 + <div class="bg-white rounded drop-shadow-sm py-2 px-4 relative w-full md:w-96"> 156 + <div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div> 157 + <div class="text-sm text-gray-500"> 158 + {{ index .DidHandleMap .LoggedInUser.Did }} 159 + </div> 160 + <form 161 + hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/comment" 162 + hx-swap="none"> 163 + <input type="hidden" name="submissionId" value="{{ $submissionId }}"> 164 + <textarea 165 + name="body" 166 + class="w-full border-0 h-8 focus:outline-none focus:ring-0 px-0 py-1" 167 + placeholder="Add to the discussion..." /></textarea> 168 + <div class="flex justify-end"> 169 + <button type="submit" class="btn text-sm mt-2">comment</button> 170 + </div> 171 + <div id="pull-comment"></div> 172 + </form> 159 173 </div> 160 - <form 161 - hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/comment" 162 - hx-swap="none"> 163 - <input type="hidden" name="submissionId" value="{{ $submissionId }}"> 164 - <textarea 165 - name="body" 166 - class="w-full border-0 h-8 focus:outline-none focus:ring-0 px-0 py-1" 167 - placeholder="Add to the discussion..." /></textarea> 168 - <div class="flex justify-end"> 169 - <button type="submit" class="btn text-sm mt-2">comment</button> 170 - </div> 171 - <div id="pull-comment"></div> 172 - </form> 173 174 {{ else }} 174 - <div class="bg-white rounded drop-shadow-sm px-6 py-4 mt-8"> 175 + <div class="bg-white rounded drop-shadow-sm px-6 py-4 text-sm w-fit"> 176 + <div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div> 175 177 <a href="/login" class="underline">login</a> to join the discussion 176 178 </div> 177 - </div> 178 179 {{ end }} 179 180 {{ end }} 180 181 {{ end }}
+3 -3
flake.lock
··· 67 67 "lucide-src": { 68 68 "flake": false, 69 69 "locked": { 70 - "narHash": "sha256-h3LsMyt4gaugENlg07Uxl96j89O5B2ZaO6fQ07cjZgQ=", 70 + "narHash": "sha256-5ipNSxTlQ7627lGgsyZxk7vS1sr9RkrlR8/QMj2Zg6s=", 71 71 "type": "file", 72 - "url": "https://unpkg.com/lucide@latest" 72 + "url": "https://unpkg.com/lucide@0.482.0" 73 73 }, 74 74 "original": { 75 75 "type": "file", 76 - "url": "https://unpkg.com/lucide@latest" 76 + "url": "https://unpkg.com/lucide@0.482.0" 77 77 } 78 78 }, 79 79 "nixpkgs": {
+1 -1
flake.nix
··· 12 12 flake = false; 13 13 }; 14 14 lucide-src = { 15 - url = "https://unpkg.com/lucide@latest"; 15 + url = "https://unpkg.com/lucide@0.482.0"; 16 16 flake = false; 17 17 }; 18 18 ia-fonts-src = {