<% content_for :style do %> <% end %> <% content_for :script do %> <% end %>
<%= metric_select_tag 'new_metric', @metric_to_choose, { :allow_empty => true, :select2_options => {'placeholder' => "'" + message('comparison.add_metric') + "'"} } -%>
<%= resource_select_tag 'new_resource', { :resource_type_property => 'comparable', :width => '250px', :select2_options => {'placeholder' => "'" + message('comparison.add_project') + "'"} } -%>
<% last_index = @snapshots.size-1 @snapshots.each_with_index do |s, index| %> <% end %> <% last_index = @snapshots.size-1 @snapshots.each_with_index do |s, index| event = s.event(EventCategory::KEY_VERSION) %> <% end %> <% last_index = @metrics.size-1 @metrics.each_with_index do |m, index| %> <% @snapshots.each do |s| %> <% end %> <% end %>
<% if index > 0 %> <% else %> <% end %>
<% if index < last_index %> <% else %> <% end %>
<%= h s.resource.name(true) -%>
<%= event ? h(event.name) : message('comparison.version.latest') -%>
<%= human_short_date s.created_at -%>
<%= m.short_name -%> <% if index > 0 %> <% end %> <% if index < last_index %> <% end %>
<%= format_measure s.measure(m) -%>