Skip to content

Commit

Permalink
Be consistent in how we render the username in comments
Browse files Browse the repository at this point in the history
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
  • Loading branch information
danidoni committed Jan 31, 2024
1 parent c9ab73d commit efdfd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/comment/_content.html.haml
Expand Up @@ -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)
Expand Down

0 comments on commit efdfd57

Please sign in to comment.