Skip to content

Commit

Permalink
User name Appearing Twice(publiclab#8687) (publiclab#8819)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravahlawat81 authored and reginaalyssa committed Oct 16, 2021
1 parent 64c257c commit d07fba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
</div>

<div class="offset-md-1 order-first order-md-last col-md-4 text-center">
<div class="text-center">
<div class="text-center d-none d-lg-block">
<%if @content_approved or (!current_user.nil? && current_user.id == @profile_user.id)%>
<%= image_tag(@profile_user.profile_image, class:'d-none d-lg-inline rounded-circle', id:'profile-photo', style:"width:50%;margin-bottom:10px;") %>
<%= image_tag(@profile_user.profile_image, class:'rounded-circle', id:'profile-photo', style:"width:50%;margin-bottom:10px;") %>
<%end%>
<h4 class="mt-3"><strong>@<%= @profile_user.name %> <%= @profile_user.new_contributor %></strong></h4>
</div>
Expand Down

0 comments on commit d07fba4

Please sign in to comment.