anchor.diff:            <% if !party.user.nil? %>
               <% if party.user == current_user %>
                 <% if party.state != 'Signed' && @code.state != 'Rejected' %>
  -                <%= link_to "Sign", controller: "parties", action: "sign", party_id: party.id %>
  +                <%= link_to "Sign", {controller: "parties", action: "sign", party_id: party.id}, :class => 'btn btn-default' %>
                 <% end %>
               <% end %>
             <% end %>
  
positive.code: <%- model_class = Code -%>
  <div class="page-header">
    <h1><%= @code.sign_state == 'Signed' ? 'Contract' : 'Draft' %></h1>
  </div>
  
  <dl>
    <dt>Contract</dt>
    <dd><%= link_to @code.contract.title, contract_path(@code.contract) %></dd>
    <dt>Version</dt>
    <dd><%= @code.version %></dd>
    <dt>Status</dt>
  
negative.code:           <% elsif party.user.nil? %>
              <%= form_for party, url: {controller: "parties", action: "assign", party_id: party.id} do |f| %>
                <%= f.select(:user, options_from_collection_for_select(User.all, :id, :name)) %>
                <%= f.submit "Assign", :class => 'btn btn-default' %>
              <% end %>
            <% elsif !@code.proposed && party.state != 'Signed' %>
              <%= form_for party, url: {controller: "parties", action: "unassign", party_id: party.id} do |f| %>
                <%= party.user.username %>
                <%= f.submit "Unassign", :class => 'btn btn-default' %>
              <% end %>
            <% else %>
              <%= party.user.username %>
  