From efdfd57495bd42aa5a3ca9e24ce542d67ca18c4d Mon Sep 17 00:00:00 2001 From: Dani Donisa Date: Wed, 31 Jan 2024 12:38:57 +0100 Subject: [PATCH] Be consistent in how we render the username in comments We show the real name next to the login in the comments on a request, but we show only the login in the comments in packages, projects, etc. This PR makes it consistent --- src/api/app/views/webui/comment/_content.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/app/views/webui/comment/_content.html.haml b/src/api/app/views/webui/comment/_content.html.haml index 4fe04fcd547..543a3b66bcf 100644 --- a/src/api/app/views/webui/comment/_content.html.haml +++ b/src/api/app/views/webui/comment/_content.html.haml @@ -4,7 +4,7 @@ = image_tag_for(comment.user, size: 35, custom_class: 'me-3 d-none d-sm-block') .comment.flex-grow-1.text-break .mb-3{ id: "comment-#{comment.id}-user" } - = link_to(comment.user, user_path(comment.user)) + = link_to(realname_with_login(comment.user), user_path(comment.user)) wrote = link_to("#comment-#{comment.id}", title: I18n.l(comment.created_at.utc), name: "comment-#{comment.id}") do = render TimeComponent.new(time: comment.created_at)