lib/relevance/tarantula/test_report.html.erb in tarantula-0.1.4 vs lib/relevance/tarantula/test_report.html.erb in tarantula-0.1.5
- old
+ new
@@ -1,34 +1,32 @@
<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>
+ <table class="list tablesorter" cellspacing="0">
+ <caption><%= send(result_type).size %> <%= result_type.capitalize %></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>
+ <th class="sort asc"><span>URL</span><span class="sort"> </span></th>
+ <th><span>Action</span><span class="sort"> </span></th>
+ <th><span>Response</span><span class="sort"> </span></th>
+ <th class="left"><span>Description</span><span class="sort"> </span></th>
+ <th><span>Referrer</span><span class="sort"> </span></th>
</tr>
</thead>
<tfoot>
- <tr>
- <td colspan="5">
- <br /><br />
- </td>
- </tr>
+ <tr><td colspan="5"> </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>
+ <td class="left"><a href="<%= "#{test_name}/#{result.file_name}" %>"><%= result.url.ellipsize(30) %></a></td>
+ <td class="method"><%= result.method.to_s.upcase %></td> <!-- TODO Clean up demeter violation -->
+ <td><span class="<%= class_for_code(result.code) %>"><%= result.code %></span></td>
+ <td class="left"><%= result.description %></td>
+ <td class="left"><%= result.referrer.ellipsize(30) %></td>
</tr>
<% end %>
</tbody>
- </table>
+ </table>
+ <br/>
<% end %>
</div>