web/app/views/compare/index.html.erb
changeset 106 eac4098d544d
parent 91 d430a8ac253d
child 111 28dccacb2bc1
equal deleted inserted replaced
105:8293977e9a30 106:eac4098d544d
     4   <div class="well">
     4   <div class="well">
     5     <%= form_for @compare_query,
     5     <%= form_for @compare_query,
     6       url: filter_compare_index_path,
     6       url: filter_compare_index_path,
     7       builder: CalipelFormBuilder do |f| %> 
     7       builder: CalipelFormBuilder do |f| %> 
     8       <%= f.fieldset_item "Comparing" do %>
     8       <%= f.fieldset_item "Comparing" do %>
     9         <%= f.select_field_item :benchmark_id, benchmark_options %>
     9         <%= f.select_field_item :benchmark_id, all_benchmarks_options %>
    10         <%= f.checkboxes_item :implementations, language_impls_options %>
    10         <%= f.checkboxes_item :runtimes, all_runtimes_options %>
    11         <%= f.submit_item "Compare" %>
    11         <%= f.submit_item "Compare" %>
    12       <% end %>
    12       <% end %>
    13     <% end %>
    13     <% end %>
    14   </div>
    14   </div>
    15 </div>
    15 </div>
    16 
    16 
    17 <div class="span9">
    17 <div class="span9">
    18   <% unless @implementations.empty? %>
    18   <% unless @runtimes.empty? %>
    19     <h1>
    19     <h1>
    20       Comparison for 
    20       Comparison for 
    21       <%= @benchmark_info.name %>
    21       <%= @benchmark_info.name %>
    22     </h1>
    22     </h1>
    23     <p>
    23     <p>
    24       <%= comparing_impls_headline(@implementations) %>
    24       <%= comparing_runtimes_headline(@runtimes) %>
    25     </p>
    25     </p>
    26 
    26 
    27     <%= render "index/compare_table", 
    27     <%= render "index/compare_table", 
    28       impls: @implementations, 
    28       runtimes: @runtimes, 
    29       benchmark_info: @benchmark_info %>
    29       benchmark_info: @benchmark_info %>
    30   <% end %>
    30   <% end %>
    31 </div>
    31 </div>