<h1 class="page-header"><%= @user.username %>'s reviews</h1>

<% @user.given_ratings.each do |review| %>
    <div class="col-xs-6 col-lg-4">
      <h2 style="color:darkcyan"><%= review.rating.round(2) %></h2>
      <p><%= review.rating_feedback %> </p>
      <p class="blog-post-meta"><%= review.created_at.strftime("%d %b. %Y") %></p>
    </div>
  <% end %>


<h1 class="page-header"><%= @user.username %>'s given reviews</h1>
<h1>average rating given: <%= @user.given_ratings.average(:rating).round(2) %></h1>

<% @user.given_ratings.each do |review| %>
    <div class="col-xs-6 col-lg-4">
      <h2 style="color:darkcyan"><%= review.rating.round(2) %></h2>
      <p><%= review.rating_feedback %> </p>
      <p class="blog-post-meta"><%= review.created_at.strftime("%d %b. %Y") %></p>
    </div>
  <% end %>


Add average rating to review page
Add average rating to review  page
