<% if CurrentUser.is_gold? %>
  <section id="mode-box">
    <h1>Mode</h1>
    <form action="/">
      <select name="mode">
        <option value="view">View</option>
        <option value="edit">Edit</option>
        <option value="tag-script">Tag script</option>
        <option value="add-fav">Favorite</option>
        <option value="remove-fav">Unfavorite</option>
        <option value="rating-s">Rate safe</option>
        <option value="rating-q">Rate questionable</option>
        <option value="rating-e">Rate explicit</option>
        <option value="vote-up">Vote up</option>
        <option value="vote-down">Vote down</option>
        <% if CurrentUser.is_builder? %>
          <option value="lock-rating">Lock rating</option>
          <option value="lock-note">Lock notes</option>
        <% end %>
        <% if CurrentUser.is_janitor? %>
          <option value="approve">Approve</option>
        <% end %>
      </select>
    </form>
  </section>
  <input id="tag-script-field" placeholder="Enter tag script" style="display: none;"></input>
<% end %>
