Commit ffb125f8 by ichuang

course_navigation for masquerade

parent fb0a2323
...@@ -27,14 +27,17 @@ def url_class(is_active): ...@@ -27,14 +27,17 @@ def url_class(is_active):
</li> </li>
% endfor % endfor
<%block name="extratabs" /> <%block name="extratabs" />
%if staff_access and masquerade: % if masquerade is not UNDEFINED:
% if staff_access and masquerade is not None:
<li style="float:right"><a href="#" id="staffstatus">Staff view</a></li> <li style="float:right"><a href="#" id="staffstatus">Staff view</a></li>
%endif % endif
% endif
</ol> </ol>
</div> </div>
</nav> </nav>
%if staff_access and masquerade: % if masquerade is not UNDEFINED:
% if staff_access and masquerade is not None:
<script type="text/javascript"> <script type="text/javascript">
masq = (function(){ masq = (function(){
var el = $('#staffstatus'); var el = $('#staffstatus');
...@@ -61,4 +64,5 @@ masq = (function(){ ...@@ -61,4 +64,5 @@ masq = (function(){
}); });
}() ); }() );
</script> </script>
%endif % endif
% endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment