Make user avatars in comments link through to profiles

This commit is contained in:
Karina Kwiatek 2022-01-29 21:16:47 +01:00 committed by Andreas Nedbal
parent f4066d55a1
commit 441530bc2c
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@
%div{ style: 'height: 0; width: 0' }= render 'modal/comment_smiles', comment: comment
.media
.pull-left
%img.comment__user-avatar.avatar-sm{ src: comment.user.profile_picture.url(:medium) }
%a{href: show_user_profile_path(username: comment.user.screen_name)}
%img.comment__user-avatar.avatar-sm{ src: comment.user.profile_picture.url(:medium) }
.media-body
%h6.media-heading.comment__user
= user_screen_name comment.user