- commit
- b9107e2
- parent
- 692febd
- author
- Eric Bower
- date
- 2024-07-18 14:50:39 -0400 EDT
docs: show desc on repo detail pages
2 files changed,
+8,
-0
+6,
-0
1@@ -12,6 +12,10 @@
2 <header>
3 <h1 class="text-2xl mb"><a href="/">repos</a> / {{.ID}}</h1>
4 <div class="group">
5+ <div>
6+ {{.Desc}}
7+ </div>
8+
9 <div>
10 <code>git clone {{.CloneAddr}}</code>
11 </div>
12@@ -20,6 +24,8 @@
13 <summary>Help</summary>
14 <pre class="m-0"># submit a new patch request
15 git format-patch {{.Branch}} --stdout | ssh {{.MetaData.URL}} pr create {{.ID}}</pre>
16+ <pre class="m-0"># list prs for repo
17+ssh {{.MetaData.URL}} pr ls {{.ID}}</pre>
18 </details>
19 </div>
20 </header>
M
web.go
+2,
-0
1@@ -178,6 +178,7 @@ type RepoDetailData struct {
2 ID string
3 CloneAddr string
4 Branch string
5+ Desc string
6 OpenPrs []PrListData
7 AcceptedPrs []PrListData
8 ClosedPrs []PrListData
9@@ -252,6 +253,7 @@ func repoDetailHandler(w http.ResponseWriter, r *http.Request) {
10 err = tmpl.Execute(w, RepoDetailData{
11 ID: repo.ID,
12 CloneAddr: repo.CloneAddr,
13+ Desc: repo.Desc,
14 Branch: repo.DefaultBranch,
15 OpenPrs: openList,
16 AcceptedPrs: acceptedList,