% if !@objects.empty? %>
<% @objects.each do |object| %>
<% obj = object.request_contract %>
<% case object.type %>
<% when "newsite" %>
New Site
<% if obj.confirmed %>
Confirmed
<% else %>
Pending
<% end %>
<% when "existing" %>
New Request for <%= obj.get_site.title %>
<% if obj.confirmed %>
Confirmed
<% else %>
Pending
<% end %>
<% end %>
Contract ID: <%= obj.uid %>
<% if object.type == "existing" %>
<%= obj.get_site.site_domain %>
<% end %>
Time : <%= obj.created_at.strftime("%d %B %Y - %H:%M") %>
<% if !obj.confirmed && !obj.signed_contract_file.url.nil? %>
Confirm
<% end %>
<% end %>