Commit fa8bf7f3 by ichuang

make the staff debug information appear in a show/hide span

parent 0940a3cc
......@@ -2,9 +2,17 @@ ${module_content}
%if edit_link:
<div><a href="${edit_link}">Edit</a></div>
% endif
<script type="text/javascript">
$('#${element_id}_showhide').click(function(){$('#${element_id}_debug').toggle(); })
</script>
<div class="staff_info">
<input type="submit" id="${element_id}_showhide" value="Staff Debug Info"/>
<span style="display:none" id="${element_id}_debug">
definition = <pre>${definition | h}</pre>
metadata = ${metadata | h}
</span>
</div>
%if render_histogram:
<div id="histogram_${element_id}" class="histogram" data-histogram="${histogram}"></div>
......
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