From 1346e89a53552937bd5d5fcc354b262f03f67009 Mon Sep 17 00:00:00 2001
From: oppiliappan
Date: Thu, 6 Nov 2025 13:44:59 +0000
Subject: [PATCH] appview/pages: improve repo header styles
Change-Id: zsunnmmmxxrnkkzmkxlwzsnnoqxxklnl
Signed-off-by: oppiliappan
---
appview/db/repos.go | 2 +-
appview/pages/templates/layouts/repobase.html | 79 +++++++++++--------
2 files changed, 48 insertions(+), 33 deletions(-)
diff --git a/appview/db/repos.go b/appview/db/repos.go
index 5b2bcdd0..095e6ded 100644
--- a/appview/db/repos.go
+++ b/appview/db/repos.go
@@ -405,7 +405,7 @@ func PutRepo(tx *sql.Tx, repo models.Repo) error {
func AddRepo(tx *sql.Tx, repo *models.Repo) error {
_, err := tx.Exec(
`insert into repos
- (did, name, knot, rkey, at_uri, description, website, topics source)
+ (did, name, knot, rkey, at_uri, description, website, topics, source)
values (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
repo.Did, repo.Name, repo.Knot, repo.Rkey, repo.RepoAt().String(), repo.Description, repo.Website, repo.TopicStr(), repo.Source,
)
diff --git a/appview/pages/templates/layouts/repobase.html b/appview/pages/templates/layouts/repobase.html
index 91c08fd1..1aa7b822 100644
--- a/appview/pages/templates/layouts/repobase.html
+++ b/appview/pages/templates/layouts/repobase.html
@@ -1,34 +1,51 @@
{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
{{ define "content" }}
-
+
{{ end }}
-
-
- {{ template "user/fragments/picHandleLink" .RepoInfo.OwnerDid }}
-
/
-
{{ .RepoInfo.Name }}
- {{ range $topic := .RepoInfo.Topics }}
-
{{ $topic }}
- {{ end }}
+
+
+
+
+
+
+
+ {{ if .RepoInfo.Description }}
+ {{ .RepoInfo.Description | description }}
+ {{ else }}
+ this repo has no description
+ {{ end }}
+
+ {{ with .RepoInfo.Website }}
+
+ {{ i "globe" "size-4" }}
+ {{ . | trimUriScheme }}
+
+ {{ end }}
+
+ {{ if .RepoInfo.Topics }}
+
+ {{ range .RepoInfo.Topics }}
+ {{ . }}
+ {{ end }}
+
+ {{ end }}
+
+
-
-
- {{ if .RepoInfo.Description }}
- {{ .RepoInfo.Description | description }}
- {{ else }}
- this repo has no description
- {{ end }}
- {{ .RepoInfo.Website | trimUriScheme }}
-