comparison.compare=Compare
comparison.add_metric=Add metric
-comparison.select_resource_to_compare=Select a resource
+comparison.add_project=Add project
comparison.select_version=Select a version
comparison.remove_resource=Remove resource
comparison.remove_metric=Remove metric
end
@metrics = Metric.by_keys(metrics)
- @metric_to_choose = Metric.all.select {|m| m.display? && !@metrics.include?(m)}.sort_by(&:short_name)
+ @metric_to_choose = Metric.all.select {|m| m.display? && !m.on_new_code? && !@metrics.include?(m)}.sort_by(&:short_name)
end
def versions
<%= resource_select_tag 'new_resource', {
:resource_type_property => 'comparable',
:width => '250px',
- :select2_options => {'placeholder' => "'" + message('comparison.select_resource_to_compare') + "'"}
+ :select2_options => {'placeholder' => "'" + message('comparison.add_project') + "'"}
} -%>
<script>
// we don't want this parameter to be submitted, so we set its name to ''