anchor.diff:  </table>
   
   <% if FlagSetting['registration_enabled'] == '1' %>
  +  <%= link_to "Add new maximum flags per site preference", url_for(controller: :user_site_settings, action: :new) %><br/>
     <p><em>Don't want to set this up yourself? <%= link_to "There's a wizard for that.", url_for(controller: :flag_conditions, action: :one_click_setup) %></em></p>
  -  <%= link_to "Set up preferences", url_for(controller: :user_site_settings, action: :new) %><br/>
  -  <%= link_to "Set up conditions", url_for(controller: :flag_conditions, action: :index) %>
   <% else %>
     <p class="text-muted"><em>Registration for autoflagging is currently closed.</em></p>
   <% end %>
  
positive.code: <h3><%= title "Autoflagging Preferences" %></h3>
  <p>These are the preferences you've set for autoflagging. You can choose only certain sites to flag on by associating
    your preferences with only those sites.</p>
  
  <div class="panel panel-danger">
    <div class="panel-heading">
      <h3 class="panel-title">Clifford the Big Red Button</h3>
    </div>
    <div class="panel-body">
      <p>
        <strong class="text-danger">Warning:</strong> for all the joking about, this is serious. By ticking this box, you are explicitly consenting to
        your Stack Exchange account being used to cast flags automatically based on data collected by SmokeDetector. While we believe this has a high
        rate of accuracy and have designed the system to reflect this, flags cast using your account are your responsibility, and many invalid flags
        can in some cases result in your SE account being suspended. Only tick the box if you are happy with this responsibility.
      </p>
      <hr/>
      <% if current_user.api_token.nil? %>
        <p class="text-info">You need to authenticate for write access first; <%= link_to "you can do that here", url_for(controller: :authentication, action: :status) %>.</p>
      <% else %>
        <input id="red-button" name="red-button" type="checkbox" <%= "checked" if current_user.flags_enabled %> <%= "disabled" if (FlagSetting["registration_enabled"] == "0" || !current_user.has_role?(:flagger)) and not current_user.flags_enabled %> />
        <label for="red-button">Use my account to cast flags automatically</label>
  
negative.code:         <p class="text-muted">Registration is currently disabled.</p>
        <% end %>
      <% end %>
    </div>
  </div>
  
  <h4>Preferences: maximum number of flags metasmoke will use</h4>
  <p>Each preference below sets the maximum number of your flags metasmoke will use on a site or group of sites. In order for metasmoke to use your account for autoflagging, you need to have at least one such preference set.</p>
  <table class="table table-striped">
    <thead>
      <tr>
  