Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
fix: use profile email on index Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmWlvPcACgkQuFOtpdp7 v3oGoQ//X+HUHzbz/mOBsuvSPL5o081RMv6CqpJMZJuX10l/EKlPqkQTrix7XSeM xF/T93wUuZ+nic23H9lhAHKcXMXbfrUNcBGJCLQPa7CkzEc7XJ4PpFg2O6HgW41F ymr6YXASuN8I3u4aeTPS3CL/el0y9JPhiVL5gGm6E6Zu0aXqSSYBPt5qfsZtaMK0 TDAl0np6GjmFm/vu8urmTccNSaErJHSrUTRjO/mwEU1FQRoTgHF2sJ9hyTWldbPI lN8pd1+VefyGtHKyX3uuD2oLqYdAlZQ2hzq+y7SL/pRYKW0OkO2KatNDgde3BpF0 B0+hxofEd49QZykCUFoONX1Cc8QFvi5HrtG6a6LqoECU/S1avvxryGtaFbgHs0H5 R/t2qLc80gGkNjAQfoYx2JvjjMA5+66O2BvAtbYUxA8nymkpTAMkq8ML9ohXuq4K 6n5T9p+G+aQ+dgm7GBAMnwAhpGXtV++1tqdHQGZsInuJldqIZxyNwNT74qPwhwoi i+DuMvyK1dZaHiOl9NFBf8ZVetXGq85VJDKTCEfY1g2iwZhk1X4+j/yP1l21uov5 J87i12BC2s1kW812G8RLDp1dyt80h5J5FwdSFVbVgSihDphw8cap9kLKHRcNICcQ srL+gJRjhyZL500jmcarH+waQaTMflxQBU7vh/IsWvG4o0EPS6E= =a7YR -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
10 months ago
2 changed files, 35 additions(+), 16 deletions(-)
M internal/html/index.templ -> internal/html/index.templ
diff --git a/internal/html/index.templ b/internal/html/index.templ
index 96d204d1b66b31b1def91fae5b3233b30740de91..94de1938e6692bb2716cdd160a97f4d6fa723234 100644
--- a/internal/html/index.templ
+++ b/internal/html/index.templ
@@ -47,8 +47,8 @@ 				}
 				if ic.Profile.Email != "" {
 					<div class="text-mauve col-span-2">
 						<div class="w-5 h-5 stroke-mauve inline-block mr-1 align-middle">@templ.Raw(string(assets.EmailIcon))</div>
+import "go.jolheiser.com/ugit/assets"
 import "github.com/dustin/go-humanize"
-package html
 					</div>
 				}
 			</div>
M internal/html/index_templ.go -> internal/html/index_templ.go
diff --git a/internal/html/index_templ.go b/internal/html/index_templ.go
index 15f200494b1434b8c9a070a0de0badae6b10252b..b2eb084abed4e9cec893cd1200704cc87c8525d0 100644
--- a/internal/html/index_templ.go
+++ b/internal/html/index_templ.go
@@ -120,15 +120,32 @@ 				templ_7745c5c3_Err = templ.Raw(string(assets.EmailIcon)).Render(ctx, templ_7745c5c3_Buffer)
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><a class=\"underline decoration-mauve/50 decoration-dashed hover:decoration-solid\" href=\"")
+import "github.com/a-h/templ"
 import "context"
+import "github.com/a-h/templ"
 import "io"
 import "github.com/a-h/templ"
+import "bytes"
+				var templ_7745c5c3_Var6 templ.SafeURL = templ.SafeURL("mailto:" + ic.Profile.Email)
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var6)))
+import "github.com/a-h/templ"
 import "context"
 					return templ_7745c5c3_Err
 				}
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
+import "github.com/a-h/templ"
 import "context"
+					return templ_7745c5c3_Err
+import "github.com/a-h/templ"
 import "bytes"
+				var templ_7745c5c3_Var7 string
+				templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(ic.Profile.Email)
+				if templ_7745c5c3_Err != nil {
+import "go.jolheiser.com/ugit/assets"
 import "io"
+				}
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -153,8 +171,8 @@ 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><a class=\"underline decoration-mauve/50 decoration-dashed hover:decoration-solid\" rel=\"me\" href=\"")
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
-				var templ_7745c5c3_Var7 templ.SafeURL = templ.SafeURL(link.URL)
+				var templ_7745c5c3_Var8 templ.SafeURL = templ.SafeURL(link.URL)
-				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var7)))
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var8)))
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -162,14 +180,15 @@ 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
-				var templ_7745c5c3_Var8 string
+				var templ_7745c5c3_Var9 string
-import "bytes"
 // Code generated by templ - DO NOT EDIT.
+	return c.Author.When.Format("01/02/2006 03:04:05 PM")
 				if templ_7745c5c3_Err != nil {
 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 57, Col: 141}
 				}
-import "bytes"
+// Code generated by templ - DO NOT EDIT.
 // templ: version: v0.2.501
+package html
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -187,8 +206,8 @@ 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"col-span-1 text-blue dark:text-lavender\"><a class=\"underline decoration-blue/50 dark:decoration-lavender/50 decoration-dashed hover:decoration-solid\" href=\"")
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
-				var templ_7745c5c3_Var9 templ.SafeURL = templ.URL("/" + repo.Name())
+				var templ_7745c5c3_Var10 templ.SafeURL = templ.URL("/" + repo.Name())
-				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var9)))
+				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var10)))
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -196,13 +215,14 @@ 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
-				var templ_7745c5c3_Var10 string
+				var templ_7745c5c3_Var11 string
 // Code generated by templ - DO NOT EDIT.
+		if !templ_7745c5c3_IsBuffer {
 				if templ_7745c5c3_Err != nil {
 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 63, Col: 218}
 				}
 import "go.jolheiser.com/ugit/internal/git"
-
+import "context"
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -210,14 +231,14 @@ 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
 // Code generated by templ - DO NOT EDIT.
+// Code generated by templ - DO NOT EDIT.
-package html
 // Code generated by templ - DO NOT EDIT.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+			templ_7745c5c3_Buffer = templ.GetBuffer()
 				if templ_7745c5c3_Err != nil {
 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 64, Col: 66}
 				}
 // Code generated by templ - DO NOT EDIT.
-import "context"
+type IndexContext struct {
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
@@ -234,15 +255,15 @@ 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}
 // Code generated by templ - DO NOT EDIT.
-import "go.jolheiser.com/ugit/internal/git"
+			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
 // Code generated by templ - DO NOT EDIT.
-import "github.com/dustin/go-humanize"
+		}
 				if templ_7745c5c3_Err != nil {
 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 65, Col: 100}
 				}
 // Code generated by templ - DO NOT EDIT.
+package html
 // Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.501
 				if templ_7745c5c3_Err != nil {
 					return templ_7745c5c3_Err
 				}