Skip to content

Commit

Permalink
Update profile.html.erb (#11005)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyotirawat224 authored Apr 12, 2022
1 parent 68eafcb commit ed86e58
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 @@ -45,13 +45,13 @@

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

0 comments on commit ed86e58

Please sign in to comment.