web/app/views/index/_compare_table.html.erb
changeset 91 d430a8ac253d
child 92 c61f1cae722c
equal deleted inserted replaced
70:e9c892b1c82b 91:d430a8ac253d
       
     1 <% make_chart = true if local_assigns[:make_chart].nil? %>
       
     2 <div >
       
     3   <div class="<%= make_chart ? "line-chart flot time-chart" : "" %>">
       
     4     <table class="table table-condensed">
       
     5       <thead>
       
     6         <tr>
       
     7           <th>Měsíc</th>
       
     8           <% impls.each do |impl| %> 
       
     9             <th><%= impl.name %></th>
       
    10           <% end %>
       
    11         </tr>
       
    12       </thead>
       
    13       <tbody>
       
    14         <% all_dates_when_performed(impls).each do |date| %>
       
    15           <tr>
       
    16             <%= content_tag :th, 
       
    17               (make_chart ? date_to_millis(date) : t(date)), 
       
    18               'data-timestamp' => date_to_millis(date) %>
       
    19             <% impls.each do |impl| %>
       
    20               td><%= impl.results_of(benchmark_info, date).try(:min_duration) %></td>
       
    21             <% end %>
       
    22           </tr>
       
    23         <% end %>
       
    24       </tbody>
       
    25     </table>
       
    26   </div>
       
    27 </div>