Source

eyes / eyeswebapp / templates / core / test_monitor.html

Full commit
{% extends 'base.html' %}
{% load eyes_filters %}

{% block title %}{{plugin_name}}{% endblock %}

{% block pagetitle %}{{plugin_name}}{% endblock %}

{% block content %}

<script type="text/javascript">
$(document).ready(function() {

	$("#tryit").click(function() {
		$.get("/core/ajax_monitor/{{plugin_name}}/", function(data) {
			var monitor_result = $.parseJSON(data);
			$("#monitor_output").html(monitor_result.output);
	    });
	});

});
</script>

	<h3>Monitor Plugin: {{plugin_name}}</h3>
	
	<div id="tryit">TRY IT</div>
	
	{% if monitor_result.error %}
	<h4>{{monitor_result.error}}</h4>
	{% else %}
	<p><i>invoked: {{monitor_result.command}}</i></p>
    <p><pre><div id="monitor_output"></div></pre></p>
	{% endif %}

{% endblock %}