From 079c73635ce93301e3eb159faced77a48900228e Mon Sep 17 00:00:00 2001 From: Cyborus Date: Sat, 11 Oct 2025 11:19:33 +0200 Subject: [PATCH] fix(ui): add `markup` class to project descriptions (#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: Mathieu Fenniak Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9634 Reviewed-by: Mathieu Fenniak Co-authored-by: Cyborus Co-committed-by: Cyborus --- 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 9e383d5c59..8211ffed9d 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -69,7 +69,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}}