From 9a5cd6bac35208815d0354e164c8e43ccd313cea Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Mon, 17 Mar 2025 20:46:17 +0100 Subject: [PATCH] Tweak repo desc (WIP) WIP because I'd like it to be visible even if repo is empty Signed-off-by: Minecon724 --- templates/repo/home.tmpl | 4 +++- web_src/css/repo.css | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 7bf4ee4a8e..53b7a364b2 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -9,7 +9,9 @@
{{$description := .Repository.DescriptionHTML $.Context}} {{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}} - {{if .Repository.Website}}{{.Repository.Website}}{{end}} + {{if .Repository.Website}} + {{svg "octicon-globe"}} {{.Repository.Website}} + {{end}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index d6faa4b2a7..b000cd61ae 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -3016,3 +3016,7 @@ tbody.commit-list { #repo-activity-top-authors-chart { height: 150px; /* Pre-allocate the height that will be taken up by the chart, to avoid the container 'jumping'. */ } + +.no-description { + color: var(--color-text-light-3); +}