repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

commit
3eb94cf
parent
5703a1f
author
Eric Bower
date
2024-12-21 15:21:59 -0500 EST
feat: filter links for pr-table
2 files changed,  +17, -1
M tmpl/index.html
+13, -1
 1@@ -211,11 +211,23 @@ git rebase -i origin/main
 2 git push origin main
 3 
 4 # Done!
 5-```</pre>
 6+</pre>
 7   </details>
 8 </header>
 9 
10 <main>
11+  <div>
12+    filter
13+    <a href="/">all</a>
14+    &middot;
15+    <a href="/?status=open">open</a>
16+    &middot;
17+    <a href="/?status=reviewed">reviewed</a>
18+    &middot;
19+    <a href="/?status=accepted">accepted</a>
20+    &middot;
21+    <a href="/?status=closed">closed</a>
22+  </div>
23   {{template "pr-table" .Prs}}
24 </main>
25 
M tmpl/pr-table.html
+4, -0
 1@@ -24,6 +24,10 @@
 2         </td>
 3         <td><date>{{.Date}}</date></td>
 4       </tr>
 5+    {{else}}
 6+      <tr>
 7+        <td colspan="5">No patch requests found.</td>
 8+      </tr>
 9     {{end}}
10   </tbody>
11 </table>