Permalink
Browse files

Remove graphs from the mainpage. Causes Slowness on some sites when y…

…ou have a ton of top-level tests.
  • Loading branch information...
ericholscher committed Jan 3, 2010
1 parent 1b32685 commit 93fe6bf1ca37cd8f65502ced213d42dd9083277b
Showing with 0 additions and 59 deletions.
  1. +0 −59 kong/templates/kong/index.html
@@ -17,69 +17,10 @@ <h3> {{ site_slug }} </h3>
<small><em>{{ result.test.name }}</em> run at {{ result.run_date|date:"g:iA"|lower }}</small>
<small>Duration (ms): {{ result.duration|micro_to_milli }}</small>
</a>
- <div class="placeholder" id="placeholder-{{ result.site.slug }}-{{ result.test.slug }}" style="position:relative; width:200px; height:40px;"></div>
</p>
{% endfor %}
</div>
{% endfor %}
</div>
-<script type="text/javascript">
-{% for site_test_slug, results in flot_list.items %}
- $(function () {
- var data = [{{ results }}]
- var options = {
- xaxis: {
- ticks: [],
- mode: "time"
- },
- yaxis: {
- ticks: []
- },
- grid: {
- color: "#fff",
- hoverable: true,
- clickable: true
- },
- }
-
- $.plot($("#placeholder-{{ site_test_slug }}"), data, options );
- });
-{% endfor %}
-
-function showTooltip(x, y, contents, id) {
- $('<div id="' + id + '">' + contents + '</div>').css( {
- position: 'absolute',
- display: 'none',
- top: y + 5,
- left: x + 5,
- border: '1px solid #fdd',
- padding: '2px',
- 'background-color': '#fee',
- opacity: 0.80
- }).appendTo("body").fadeIn(200);
-}
-
-var previousPoint = null;
-$(".placeholder").bind("plothover", function (event, pos, item) {
-
- if (item) {
- if (previousPoint != item.datapoint) {
- previousPoint = item.datapoint;
-
- $("#tooltip").remove();
- var x = item.datapoint[0].toFixed(2),
- y = item.datapoint[1].toFixed(2);
-
- showTooltip(item.pageX, item.pageY, y, 'tooltip');
- }
- }
- else {
- $("#tooltip").remove();
- previousPoint = null;
- }
-});
-
-</script>
-
{% endblock %}

0 comments on commit 93fe6bf

Please sign in to comment.