measure_filter.criteria.components_of=Components of
measure_filter.criteria.components_of_project=Components of project
measure_filter.new_search=New search
+measure_filter.favourite_filters=Favourite Filters
measure_filter.more_criteria=+ More Criteria
measure_filter.languages=Languages
measure_filter.col.date=Date
<div id="sidebar-favourites">
<% if logged_in? %>
- <li class="sidebar-title">Favourite Filters</li>
+ <li class="sidebar-title"><%= message('measure_filter.favourite_filters') -%></li>
<% current_user.favourited_measure_filters.each do |filter| %>
<li <%= "class='active'" if @filter && filter.id==@filter.id -%>>
<a href="<%= ApplicationController.root_context -%>/measures/filter/<%= filter.id -%>"><%= h filter.name -%></a>
end
%>
<li class="sidebar-title">
- <%= @filter.name.present? ? h(@filter.name) : 'New Search' -%>
+ <%= @filter.name.present? ? h(@filter.name) : message('measure_filter.new_search') -%>
</li>
<li class="marginbottom5">
<%
<% condition_metrics = Metric.all.select { |m| m.numeric? && !m.hidden } %>
<% for i in 1..3 %>
<li id="criteria-metric-<%= i -%>" style="<%= "display: none" if hidden_condition_indexes.include?(i) -%>" class="marginbottom5">
- <%= metric_select_tag "c#{i}_metric", condition_metrics, :allow_empty => true, :selected_key => @filter.criteria("c#{i}_metric"), :width => '100%', :placeholder => 'Metric' -%>
- <%= select_tag "c#{i}_period", options_for_select([['Value', ''], [Api::Utils.period_label(1), '1'], [Api::Utils.period_label(2), '2'], [Api::Utils.period_label(3), '3']], @filter.criteria("c#{i}_period")) -%>
+ <%= metric_select_tag "c#{i}_metric", condition_metrics, :allow_empty => true, :selected_key => @filter.criteria("c#{i}_metric"), :width => '100%', :placeholder => message('measure_filter.criteria.metric') -%>
+ <%= select_tag "c#{i}_period", options_for_select([[message('value'), ''], [Api::Utils.period_label(1), '1'], [Api::Utils.period_label(2), '2'], [Api::Utils.period_label(3), '3']], @filter.criteria("c#{i}_period")) -%>
<br>
<%= select_tag "c#{i}_op", options_for_select([['=', 'eq'], ['<', 'lt'], ['<=', 'lte'], ['>', 'gt'], ['>=', 'gte']], @filter.criteria("c#{i}_op")) -%>
<input type="text" size="5" name="c<%= i -%>_val" value="<%= h @filter.criteria("c#{i}_val") -%>">