anchor.diff:            <% 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" %>
  +              <%= 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" %>
  +              <%= f.submit "Unassign", :class => 'btn btn-default' %>
               <% end %>
             <% else %>
               <%= party.user.username %>
  
positive.code:   <% if !@code.proposed && @code.sign_state == 'Unsigned' %>
      <%= link_to "Edit Code", edit_code_path(@code), :class => 'btn btn-default' %>
    <% else %>
      <%= link_to "Duplicate", action: "duplicate", code_id: @code.id %>
    <% end %>
  
    <% if (!@code.proposed && !@code.posted) && @code.assign_state == 'Assigned' %>
      <%= link_to "Propose", action: "propose", code_id: @code.id %>
    <% elsif @code.proposed && (@code.sign_state == 'Pre-signed' || @code.sign_state == 'Unsigned') && @code.author == current_user.id %>
      <%= link_to "Retract", action: "retract", code_id: @code.id unless @code.state == 'Rejected' %>
    <% end %>
  
    <% if !@code.posted && @code.sign_state == 'Pre-signed' && @code.assign_state == 'Self-assigned' %>
      <%= link_to "Post", action: "post", code_id: @code.id %>
    <% elsif @code.posted && @code.author == current_user.id && @code.state != 'Signed' %>
      <%= link_to "Unpost", action: "unpost", code_id: @code.id %>
    <% elsif @code.posted && @code.author != current_user.id && @code.state != 'Signed' %>
      <%= link_to "Accept", action: "accept", code_id: @code.id %>
    <% end %>
  
    <% if @code.proposed && @code.author != current_user.id && !@code.rejected %>
      <%= link_to "Reject", action: "reject", code_id: @code.id %>
    <% end %>
  
    <% if !@code.code.blank? && @code.assign_state == 'Assigned' && !@code.interpreter.blank? %>
      <%= link_to "Debug", action: "debug", code_id: @code.id %>
    <% end %>
  </p>
  
  
negative.code: <%- model_class = Code -%>
  
  <style>
  textarea
  {
    font-family: monospace;
  }
  </style>
  
  <div class="page-header">
    <h1><%= @code.sign_state == 'Signed' ? 'Contract' : 'Draft' %></h1>
  </div>
  
  <dl>
    <dt>Contract</dt>
    <dd><%= @code.contract.title %></dd>
    <dt>Version</dt>
    <dd><%= @code.version %></dd>
    <dt>Status</dt>
  