web/app/views/index/_benchmarks_table.html.erb
changeset 63 33ab7e8188d0
child 65 a37ce193f555
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/app/views/index/_benchmarks_table.html.erb	Thu Jun 20 23:31:53 2013 +0200
@@ -0,0 +1,22 @@
+<div class="<%= "line-chart flot bar-chart" if make_chart %>" data-stack="false" >
+    <table class="table table-condensed">
+        <thead>
+            <tr>
+                <th>Benchmarks</th>
+                <% results.each do |result| %> 
+                  <th><%= "#{result["benchmark"]["selector"]}" %></th>
+                <% end %>
+            </tr>
+        </thead>
+        <tbody>
+          <% 5.times do |index| %>
+            <tr>
+              <th><%= index + 1 %></th>
+              <% results.each do |result| %> 
+                <td><%= result["times"][index] %></td>
+              <% end %>
+            </tr>
+          <% end %>
+        </tbody>
+    </table>
+</div>