<div id="profile">
  <div id="info" class="profile">
    <%= render partial: "profile_info" %>
  </div>

  <% unless @profile.address.blank? && current_user_profile?(@profile) %>
    <%= render partial: "profile_congresspeople" %>
  <% end %>

  <div id="votes" class="profile">
    <h4>Votes</h4>
    <p>Up votes: <%= @profile.user.up_votes %></p>
    <p>Down votes: <%= @profile.user.down_votes %></p>
  </div>

  <% unless @profile.problems.empty? %>
    <%= render partial: "profile_problems" %>
  <% end %>

  <% unless @profile.solutions.empty? %>
    <%= render partial: "profile_solutions" %>
  <% end %>
</div>
<div id="profile">
  <div id="info" class="profile">
    <%= render partial: "profile_info" %>
  </div>

  <% unless @profile.address.blank? && current_user_profile?(@profile) %>
    <%= render partial: "profile_congresspeople" %>
  <% end %>

  <% if current_user_profile?(@profile) %>
    <div id="votes" class="profile">
      <h4>Votes</h4>
      <p>Up votes: <%= @profile.user.up_votes %></p>
      <p>Down votes: <%= @profile.user.down_votes %></p>
    </div>
  <% end %>

  <% unless @profile.problems.empty? %>
    <%= render partial: "profile_problems" %>
  <% end %>

  <% unless @profile.solutions.empty? %>
    <%= render partial: "profile_solutions" %>
  <% end %>
</div>
Make votes only visible to profile owner
Make votes only visible to profile owner
