From 4dbd9c7261e04cec1eb1ac78bcbf3cc7aaf1d36d Mon Sep 17 00:00:00 2001 From: forgejo-backport-action Date: Mon, 13 Oct 2025 05:14:47 +0200 Subject: [PATCH] [v13.0/forgejo] fix(ui): add `markup` class to project descriptions (#9667) **Backport:** https://codeberg.org/forgejo/forgejo/pulls/9634 Fixes #9630 ### Project page Before ![project-page-before](/attachments/1a6b15e6-6959-4ec2-978b-241a31958f1c) After ![project-page-after](/attachments/50fe81a7-6c29-49e5-8336-a8261171c77c) ### Projects list Before ![project-list-before](/attachments/ec92a7f5-de76-4c36-90b4-4f8951ad14b7) After ![project-list-after](/attachments/f1d82688-3030-45d6-8ca5-6d601f5cbc8f) --- ### Tests - I added test coverage for Go changes... - [ ] in their respective `*_test.go` for unit tests. - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I added test coverage for JavaScript changes... - [ ] in `web_src/js/*.test.js` if it can be unit tested. - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)). I'm unsure if this change is substantial enough to warrant that? ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] I do not want this change to show in the release notes. - [x] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/.md` to be be used for the release notes instead of the title. ## Release notes - User Interface bug fixes - [PR](https://codeberg.org/forgejo/forgejo/pulls/9634): fix(ui): add `markup` class to project descriptions Co-authored-by: Cyborus Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9667 Reviewed-by: Mathieu Fenniak Co-authored-by: forgejo-backport-action Co-committed-by: forgejo-backport-action --- templates/projects/list.tmpl | 2 +- templates/projects/view.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index b97713ec12..639f6ff78c 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -71,7 +71,7 @@ {{end}} {{if .Description}} -
+
{{.RenderedContent}}
{{end}} diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index e1141a398c..64def9cbca 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -58,7 +58,7 @@ {{end}}
-
{{$.Project.RenderedContent}}
+
{{$.Project.RenderedContent}}