% @contracts.each do |contract| %>
<% site = contract.get_site if contract.site_request.type == "existing" %>
<%= contract.uid %>
| <%= contract.contract_user.name %> |
<% case contract.site_request.type %>
<% when "newsite" %>
New Site
<% when "existing" %>
New Feature
<% if !site.nil? %>
<% else %>
Site Deleted
<% end %>
<% end %>
|
<%= contract.created_at.strftime("%y-%m-%d %H:%M") %> |
<%= (contract.confirmed ? "Yes" : "No").html_safe %> |
<% if contract.site_request.type == "newsite" %>
View
<% elsif contract.site_request.type == "existing" && !site.nil? %>
View
<% end %>
|
<% end %>