A vibe coded tangled fork which supports pijul.
at master 72 lines 2.4 kB view raw
1{{ define "title" }}new discussion &middot; {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "repoContent" }} 4 <div class="max-w-2xl"> 5 <h2 class="text-xl font-semibold mb-4">Start a new discussion</h2> 6 <p class="text-sm text-gray-600 dark:text-gray-400 mb-6"> 7 Discussions are for proposing changes to Pijul repositories. Anyone can add patches to a discussion. 8 </p> 9 10 <form 11 method="POST" 12 hx-post="/{{ .RepoInfo.FullName }}/discussions/new" 13 hx-swap="none" 14 class="flex flex-col gap-4" 15 > 16 <div> 17 <label for="title" class="block text-sm font-medium mb-1">Title</label> 18 <input 19 type="text" 20 id="title" 21 name="title" 22 required 23 class="w-full px-3 py-2 border rounded border-gray-300 dark:border-gray-600 dark:bg-gray-800" 24 placeholder="Discussion title" 25 > 26 </div> 27 28 <div> 29 <label for="body" class="block text-sm font-medium mb-1">Description (optional)</label> 30 <textarea 31 id="body" 32 name="body" 33 rows="6" 34 class="w-full px-3 py-2 border rounded border-gray-300 dark:border-gray-600 dark:bg-gray-800 font-mono text-sm" 35 placeholder="Describe your proposed changes..." 36 ></textarea> 37 </div> 38 39 <div> 40 <label for="target_channel" class="block text-sm font-medium mb-1">Target channel</label> 41 <input 42 type="text" 43 id="target_channel" 44 name="target_channel" 45 value="main" 46 class="w-full px-3 py-2 border rounded border-gray-300 dark:border-gray-600 dark:bg-gray-800" 47 placeholder="main" 48 > 49 <p class="text-xs text-gray-500 dark:text-gray-400 mt-1"> 50 The channel where patches should be applied when merged. 51 </p> 52 </div> 53 54 <div class="error" id="discussion"></div> 55 56 <div class="flex justify-end gap-2"> 57 <a 58 href="/{{ .RepoInfo.FullName }}/discussions" 59 class="px-4 py-2 text-sm border rounded border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700 no-underline" 60 > 61 Cancel 62 </a> 63 <button 64 type="submit" 65 class="btn-create px-4 py-2 text-sm" 66 > 67 Create discussion 68 </button> 69 </div> 70 </form> 71 </div> 72{{ end }}