2 filter_id = widget_properties['filter']
3 page_size = widget_properties['pageSize']
4 filter = MeasureFilter.find_by_id(filter_id.to_i) if filter_id
6 filter.load_criteria_from_data
7 if !filter.require_authentication? || logged_in?
8 filter.set_criteria_value('display', 'list')
9 filter.set_criteria_value('pageSize', page_size)
10 filter.execute(self, :user => current_user)
11 @widget_title = link_to h(filter.name), {:controller => 'measures', :action => 'filter', :id => filter.id, :display => 'list'}
13 <% if filter.description.present? %><p><%= h filter.description -%></p><% end %>
14 <%= render :partial => "measures/display_#{filter.display.key}", :locals => {:edit_mode => false, :widget => widget, :filter => filter} %>
19 <p><%= image_tag 'warning.png' %> <%= message 'measure_filter.widget.unknown_filter_warning' -%></p>