<% if @current_user.admin? %>
<% if (controller.controller_name == 'assignments' and
       controller.action_name != 'index') or
  controller.controller_name == 'rubrics' or
  controller.controller_name == 'flexible_criteria' or
  controller.controller_name == 'annotation_categories' or
  controller.controller_name == 'test_framework'
%>
<div id="sub_sub_menu">
  <ul id="root" class="level1 horizontal">
    <% if !@assignment.nil?%>
    <% if controller.controller_name != 'assignments' or
    (controller.controller_name == 'assignments' and 
     controller.action_name != 'new')	 %>
          <li <% if controller.controller_name == 'assignments' %> 
         id="sub_sub_menu_active"
         <%end%>>
          <%= link_to I18n.t(:properties), :controller => 'assignments', :action =>
	 'edit', :id => @assignment.id %>
       </li>
       <li <% if controller.controller_name == 'rubrics' or controller.controller_name == 'flexible_criteria'%> 
        id="sub_sub_menu_active"
      <% end %>>
	  <% if @assignment.marking_scheme_type == Assignment::MARKING_SCHEME_TYPE[:rubric] %>
         <%= link_to I18n.t(:marking_scheme), :controller => 'rubrics', :action => 'index', :id => @assignment.id%>
	  <% else %>
	     <%= link_to I18n.t(:marking_scheme), :controller => 'flexible_criteria', :action => 'index', :id => @assignment.id %>		 
	  <% end %>
	  
      </li>
      <li <% if controller.controller_name == 'annotation_categories'%> 
        id="sub_sub_menu_active"
      <% end %>>
         <%= link_to I18n.t('annotations.annotations'), :controller => 'annotation_categories', :action => 'index', :id => @assignment.id%>
      </li>
       <li <% if controller.controller_name == 'test_framework'%>
         id="sub_sub_menu_active"
	  <%end%>>
		 <%= link_to I18n.t("test_framework.test_framework"), :controller => 'test_framework', :action => 'manage', :id => @assignment.id%>
      </li>
  <% end %>
<% end %>
   </ul>
</div>
<% end %>
<% end %>

FIX added the sub_sub_menu file
FIX added the sub_sub_menu file
