Commit 3de927fe by ichuang

untabify course_nagivation.html

parent 5f74ccd1
...@@ -29,9 +29,9 @@ def url_class(is_active): ...@@ -29,9 +29,9 @@ def url_class(is_active):
<%block name="extratabs" /> <%block name="extratabs" />
% if masquerade is not UNDEFINED: % if masquerade is not UNDEFINED:
% if staff_access and masquerade is not None: % 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 % endif
</ol> </ol>
</div> </div>
</nav> </nav>
...@@ -42,11 +42,11 @@ def url_class(is_active): ...@@ -42,11 +42,11 @@ def url_class(is_active):
masq = (function(){ masq = (function(){
var el = $('#staffstatus'); var el = $('#staffstatus');
var setstat = function(status){ var setstat = function(status){
if (status=='student'){ if (status=='student'){
el.html('<font color="green">Student view</font>'); el.html('<font color="green">Student view</font>');
}else{ }else{
el.html('<font color="red">Staff view</font>'); el.html('<font color="red">Staff view</font>');
} }
} }
setstat('${masquerade}'); setstat('${masquerade}');
...@@ -55,7 +55,7 @@ masq = (function(){ ...@@ -55,7 +55,7 @@ masq = (function(){
type: 'GET', type: 'GET',
success: function(result){ success: function(result){
setstat(result.status); setstat(result.status);
location.reload(); location.reload();
}, },
error: function() { error: function() {
alert('Error: cannot connect to server'); alert('Error: cannot connect to server');
......
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