From dc508adae977d632570e88631e829b8143bc0d2d Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 25 Apr 2025 10:38:11 -0600 Subject: feat: display author information --- app/views/dashboard/show.html.tmpl | 18 +++++++++++------- pkg/domain/user_test.go | 2 +- public/index.html | 18 ++++++++++++++---- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/app/views/dashboard/show.html.tmpl b/app/views/dashboard/show.html.tmpl index 899b798..da8552f 100644 --- a/app/views/dashboard/show.html.tmpl +++ b/app/views/dashboard/show.html.tmpl @@ -10,7 +10,7 @@ -
+
+
+
@@ -31,12 +33,14 @@ ${ errorMessage }

${ heading }

-
-

${ sparkle.sparklee } ${ sparkle.reason }

-
- {{range .Sparkles}} -
{{ . }}
- {{end}} +
diff --git a/pkg/domain/user_test.go b/pkg/domain/user_test.go index 7bcd9d3..1576d6d 100644 --- a/pkg/domain/user_test.go +++ b/pkg/domain/user_test.go @@ -10,7 +10,7 @@ import ( func TestUser(t *testing.T) { t.Run("Sparkle", func(t *testing.T) { t.Run("returns a new Sparkle", func(t *testing.T) { - tanuki := &User{Username: "@tanuki"} + tanuki := &User{Username: "tanuki"} user := &User{} sparkle := user.Sparkle(tanuki.Username, "for helping me with my homework") diff --git a/public/index.html b/public/index.html index 03a393b..3200151 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ -
+
+
+

${ heading }

-
-

${ sparkle.sparklee } ${ sparkle.reason }

-
+ +
+ + -- cgit v1.2.3