anchor.diff:    if assignment != @assignment
       if (controller.controller_name == "assignments" &&
             (controller.action_name == "index" or
  -          controller.action_name == 'new')) ||
  +          controller.action_name == 'new') ||
             controller.controller_name == "results" or
             controller.controller_name == "grade_entry_forms" or
  -          controller.controller_name == "marks_graders"
  +          controller.controller_name == "marks_graders")
         if @current_user.student? %>
           <li class="level2">
             <% 
  
positive.code:                target_controller = 'flexible_criteria'
               end
             else
               target_controller = controller.controller_name
             end %>
          <% # If the current controller action is repo_browser, the drop down
             # menu for assignments should go to browse, and not repo_browser
  
negative.code:                       :id => assignment.id %>
              <% else %>
                <%= link_to h(assignment.short_identifier),
                            polymorphic_url([assignment, target_controller], action: target_action)
                %>
              <% end %>
            <%
              # student user, so show only non-hidden assignments
              else %>
              <% if !assignment.is_hidden %>
                <%= link_to h(assignment.short_identifier),
                            :controller => 'assignments',
                            :action => 'student_interface',
                            :id => assignment.id
                %>
              <% end %>
            <% end %>
        </li>
  