Contract <%= link_to 'Back', contracts_path, :class => "btn btn-default" %> <%= link_to 'Edit', edit_contract_path(@contract), :class => "btn btn-primary" %> <%= link_to 'Delete', contract_path(@contract), {:confirm => 'Are you sure you want to delete this forever?', :method => :delete, :class => "btn btn-danger"} if can? :destroy, @contract %>

<%= @contract.first_name %> <%= @contract.last_name %> <%= "and #{@contract.cosigner}" unless @contract.cosigner.blank? %> <%= link_to "(#{@contract.user.name})", @contract.user if @contract.user %> signed <%= @contract.signed_at.to_date.to_s(:long) %>

<% if @contract.document.blank? %> No document uploaded <% else %>

<%= link_to "Download Contract", @contract.document.url %>

<% end %>