Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 744 Bytes
<h1>Compare</h1>
<!-- Base URL, Activity ID, Version -->
<table class="compare">
<% @compare[0].each_with_index do |data, i| %>
<% sess, req, res, time = data %>
<% sessB, reqB, resB, timeB = @compare[1][i] %>
<tr>
<td rowspan="2"><input rel="comparetwo/<%= sess %>/<%= sessB %>" class="comparetwo" type="radio" name="compare"></td>
<td><code><%= url_filter req, 0 %></code></td>
<td><%= res %></td>
</tr>
<tr class="bottom">
<td><code><%= url_filter reqB, 1 %></code></td>
<td><%= resB %></td>
</tr>
<% end %>
</table>
<div id="results"></div>
<script type="text/javascript">
$(function(){
$(".comparetwo").click(function() {
$("#results").load($(this).attr('rel'))
})
})
</script>
Something went wrong with that request. Please try again.