Skip to content

Commit

Permalink
fix review photo
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastasia-Demetriou committed Nov 30, 2018
1 parent 4203933 commit 42762f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
<div class="user-reviews">
<% @reviews.each do |review| %>
<div class="review-card">

<%if @user.photo? %>
<%= cl_image_tag @user.photo, class: 'revavatar' %>
<% if review.user.photo %>
<%= cl_image_tag review.user.photo , class: 'revavatar' %>
<% else %>
<%= image_tag "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png" , class: 'revavatar'%>
- <%= image_tag "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png", class: 'revavatar'%>
<% end %>

<%# else %>
<!-- Display a placeholder -->
<%# end %>
Expand Down

0 comments on commit 42762f0

Please sign in to comment.