stacktach/templates/index.html
2013-06-12 16:35:08 -04:00

83 lines
2.4 KiB
HTML

{% extends "base.html" %}
{% block extra_js %}
function details(deployment_id, column, row_id)
{
$("#detail").load('/' + deployment_id + '/details/' + column +
'/' + row_id);
};
function expand(deployment_id, row_id)
{
$("#row_expansion_" + row_id).load('/' + deployment_id + '/expand/' +
row_id);
};
function search_form(deployment_id)
{
var field = $("#field").val();
var value = $("#query").val();
var count = $("#count").val();
var updates = $("#updates").is(":checked")
var data = {'field':field,
'value':value,
'updates':updates,
'count':count};
$("#detail").load('/' + deployment_id + '/search/', data);
return false;
};
{% endblock %}
{% block extra_init_js %}
$('#host-box').resizable();
$('#instance-box').resizable();
{% endblock %}
{% block body %}
<div class='status-title'>Recent Activity
{% if deployment %}- {{deployment.name}}{%else%}- ALL{%endif%}
</div>
<div id='host-box' class='status std-height'>
<div id='host_activity' class='status-inner'>
{% include "host_status.html" %}
</div>
</div>
<div class='status-title'>Commands</div>
<div class='status'>
<div class='status-inner' style='padding-bottom:0em; margin-bottom:0em; margin-top:1em'>
<div>
<form action="">
<select id='field'>
<option>deployment</option>
<option value='routing_key'>source</option>
<option value='tenant'>tenant</option>
<option>service</option>
<option>host</option>
<option>event</option>
<option value='request_id'>request</option>
<option selected='true'>instance
</select>
<input type='text' id='query' size='60' value=''/>
Include Updates: <input type='checkbox' id="updates" checked />
<select id='count'>
<option selected='true'>25</option>
<option>100</option>
<option>250</option>
<option>All</option>
</select>
<input type='submit' value='Search' onclick='return search_form({{deployment_id}});'/>
</form>
</div>
</div>
</div>
<div class='status-title'>Details</div>
<div class='status'>
<div id='detail' class='status-inner'>
<div>click on an item above to see more of the same type.</div>
</div>
</div>
{% endblock %}