add user avatar to user crawler layout (#7917)

This commit is contained in:
Saurabh Patel 2019-07-22 20:22:35 +05:30 committed by Robin Ward
parent f1dd7d05e4
commit 08b48b2ba6
2 changed files with 11 additions and 1 deletions

View File

@ -252,3 +252,10 @@
margin-top: s(1);
}
}
.user-crawler {
.username {
margin-left: 5px;
display: inline-block;
}
}

View File

@ -1,4 +1,7 @@
<h2><%= @user.username %></h2>
<div class="user-crawler">
<img src='<%= UrlHelper.local_cdn_url(get_absolute_image_url(@user.small_avatar_url)) %>' alt='<%= @user.username %>' title='<%= @user.username %>' />
<h2 class='username'><%= @user.username %></h2>
</div>
<% unless @restrict_fields %>
<p><%= raw @user.user_profile.bio_processed %></p>