<% if @user.partners.any? %>
  <div class='partners'>
    <p>Choose a Partner</p>
    <br>
    <ul class='partner-info'>
      <% @user.partners.each do |partner| %>
        <%= link_to emails_path(partner: partner.id), id: 'partner-name' do %>
          <%= partner.name %>
        <% end %>
      <% end %>
    </ul>
    <ul class='partner-info'>
      <% @user.partners.each do |partner| %>
        <li><%= image_tag('/assets/alec.jpg', id: 'partner-picture') %></li>
      <% end %>
    </ul>
    <%= button_tag "Add Partner", class: "add-partner", data: { disable_with: "Please wait..."} %>
    <div class='new-partner'>
      <%= render 'partners/form' %>
    </div>
  </div>
<% end %>

<% if @user.partners.any? %>
  <div class='partners'>
    <p>Choose a Partner</p>
    <br>
    <ul class='partner-info'>
      <% @user.partners.each do |partner| %>
        <%= link_to emails_path(partner: partner.id), id: 'partner-name' do %>
          <%= partner.name %>
        <% end %>
      <% end %>
    </ul>
    <ul class='partner-info'>
      <% @user.partners.each do |partner| %>
        <li><%= image_tag('/assets/alec.jpg', id: 'partner-picture') %></li>
      <% end %>
    </ul>
<% end %>
    <%= button_tag "Add Partner", class: "add-partner", data: { disable_with: "Please wait..."} %>
    <div class='new-partner'>
      <%= render 'partners/form' %>
    </div>
  </div>

Fix placement of an 'end'
Fix placement of an 'end'
