add user avatar to user crawler layout (#7917)
This commit is contained in:
parent
f1dd7d05e4
commit
08b48b2ba6
|
@ -252,3 +252,10 @@
|
|||
margin-top: s(1);
|
||||
}
|
||||
}
|
||||
|
||||
.user-crawler {
|
||||
.username {
|
||||
margin-left: 5px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue