repos / git-pr

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

commit
3a1eb37
parent
ebbdd7d
author
Eric Bower
date
2024-10-22 11:17:59 -0400 EDT
chore: cleanup templates
3 files changed,  +3, -29
M web.go
D tmpl/patch.html
+0, -25
 1@@ -1,25 +0,0 @@
 2-{{define "patch"}}
 3-<div class="flex gap-2">
 4-  <div style="width: 300px;">
 5-    <div>
 6-      <h3 class="text-lg m-0 p-0 mb">
 7-        {{if .Review}}<code class="pill-review">REVIEW</code>{{end}}
 8-        <a href="#{{.Url}}">{{.Title}}</a>
 9-      </h3>
10-
11-      <div class="group-h text-sm">
12-        <code class="pill{{if .Review}}-review{{end}}">{{.AuthorName}} &lt;{{.AuthorEmail}}&gt;</code>
13-        <date>{{.FormattedAuthorDate}}</date>
14-      </div>
15-    </div>
16-
17-    {{if .Body}}<pre class="m-0">{{.Body}}</pre>{{end}}
18-
19-    {{if .BodyAppendix}}<pre class="m-0">{{.BodyAppendix}}</pre>{{end}}
20-  </div>
21-
22-  <div class="flex-1">
23-    {{.DiffStr}}
24-  </div>
25-</div>
26-{{end}}
M tmpl/patchset.html
+3, -3
 1@@ -1,7 +1,7 @@
 2 {{define "patchset"}}
 3 <div class="group">
 4   <div class="flex gap-2 collapse">
 5-    <div style="width: 300px;">
 6+    <div class="group" style="width: 300px;">
 7       <h2 class="text-xl">
 8         Patchset <code>ps-{{.Patchset.ID}}</code>
 9       </h2>
10@@ -9,7 +9,7 @@
11       {{range .Patches}}
12         <div class="group">
13           <div>
14-            <h3 class="text-lg m-0 p-0 mb">
15+            <h3 class="text-lg transform-none m-0 p-0 mb">
16               {{if .Review}}<code class="pill-review">REVIEW</code>{{end}}
17               <a href="#{{.Url}}">{{.Title}}</a>
18             </h3>
19@@ -34,7 +34,7 @@
20     <div class="flex-1">
21       {{range .Patches}}
22         <div id="{{.Url}}">
23-          <h3 class="text-lg"><a href="#{{.Url}}">{{.Title}}</a></h3>
24+          <h3 class="text-lg transform-none"><a href="#{{.Url}}">{{.Title}}</a></h3>
25           <div>{{.DiffStr}}</div>
26         </div>
27       {{else}}
M web.go
+0, -1
1@@ -81,7 +81,6 @@ func getTemplate(file string) *template.Template {
2 			tmplFS,
3 			filepath.Join("tmpl", file),
4 			filepath.Join("tmpl", "user-pill.html"),
5-			filepath.Join("tmpl", "patch.html"),
6 			filepath.Join("tmpl", "patchset.html"),
7 			filepath.Join("tmpl", "pr-header.html"),
8 			filepath.Join("tmpl", "pr-list-item.html"),