Sha256: eede3c32f6d24310a1ce905ed3fa230c7c8c9902cf5100932b02d69163e8fdb0
Contents?: true
Size: 1.51 KB
Versions: 9
Compression:
Stored size: 1.51 KB
Contents
<div id="<%= test_name %>"> <% %w{failures successes}.each do |result_type| %> <table class="grid tablesorter" cellspacing="0"> <caption><%= result_type.capitalize %> (<%= send(result_type).size %>)</caption> <thead> <tr> <th class="sort asc"><span>URL</span><span class="sort"><em>↥</em></span></th> <th><span>Action</span><span class="sort"><em>↥</em></span></th> <th><span>Response</span><span class="sort"><em>↥</em></span></th> <th><span>Description</span><span class="sort"><em>↥</em></span></th> <th><span>Referrer</span><span class="sort"><em>↥</em></span></th> </tr> </thead> <tfoot> <tr> <td colspan="5"> <br /><br /> </td> </tr> </tfoot> <tbody> <% send(result_type).sort{|x,y| y.code.to_s <=> x.code.to_s}.each_with_index do |result,i| %> <tr class="<%= (i%2 == 0) ? 'even' : 'odd' %>"> <td align="center" width="120"><a href="<%= "#{test_name}/#{result.file_name}" %>"><%= result.url.ellipsize(30) %></a></td> <td align="center" width="60"><%= result.method %></td> <td align="center" width="60"><span class="<%= class_for_code(result.code) %>"><%= result.code %></span></td> <td align="center"><%= result.description %></td> <td align="center" width="120"><%= result.referrer.ellipsize(30) %></td> </tr> <% end %> </tbody> </table> <% end %> </div>
Version data entries
9 entries across 9 versions & 2 rubygems