measure_filter.col.links=Links
measure_filter.col.name=Name
measure_filter.col.short_name=Short Name
+measure_filter.col.version=Version
measure_filter.abbr.date=Date
measure_filter.abbr.description=Description
measure_filter.abbr.key=Key
measure_filter.abbr.links=Links
measure_filter.abbr.name=Name
measure_filter.abbr.short_name=Name
-measure_filter.col.version=Version
+measure_filter.abbr.version=Version
measure_filter.missing_name=Name is missing
measure_filter.name_too_long=Name is too long
measure_filter.sharing=Sharing
filter_id = widget_properties['filter']
page_size = widget_properties['pageSize']
filter = MeasureFilter.find_by_id(filter_id.to_i) if filter_id
- if filter && (!filter.require_authentication? || logged_in?)
+ if filter
filter.load_criteria_from_data
- filter.set_criteria_value('display', 'list')
- filter.set_criteria_value('pageSize', page_size)
- filter.execute(self, :user => current_user)
- @widget_title = link_to h(filter.name), {:controller => 'measures', :action => 'filter', :id => filter.id, :display => 'list'}
+ if !filter.require_authentication? || logged_in?
+ filter.set_criteria_value('display', 'list')
+ filter.set_criteria_value('pageSize', page_size)
+ filter.execute(self, :user => current_user)
+ @widget_title = link_to h(filter.name), {:controller => 'measures', :action => 'filter', :id => filter.id, :display => 'list'}
%>
- <%= render :partial => "measures/display_#{filter.display.key}", :locals => {:edit_mode => false, :widget => widget, :filter => filter} %>
-<% end %>
\ No newline at end of file
+ <%= render :partial => "measures/display_#{filter.display.key}", :locals => {:edit_mode => false, :widget => widget, :filter => filter} %>
+ <%
+ end
+ end
+ %>
\ No newline at end of file
size_metric = widget_properties['sizeMetric']
color_metric = widget_properties['colorMetric']
filter = MeasureFilter.find_by_id(filter_id.to_i) if filter_id
- if filter && (!filter.require_authentication? || logged_in?)
+ if filter
url_options = {:controller => 'measures', :action => 'filter', :id => filter.id, :display => 'treemap'}
filter.load_criteria_from_data
filter.set_criteria_value('display', 'treemap')
if size_metric
- filter.set_criteria_value('tmSize', size_metric.key)
- url_options['tmSize']=size_metric.key
+ filter.set_criteria_value('tmSize', size_metric.key)
+ url_options['tmSize']=size_metric.key
end
if color_metric
- filter.set_criteria_value('tmColor', color_metric.key)
- url_options['tmColor']=color_metric.key
+ filter.set_criteria_value('tmColor', color_metric.key)
+ url_options['tmColor']=color_metric.key
end
- filter.execute(self, :user => current_user)
- @widget_title = link_to h(filter.name), url_options
+ if !filter.require_authentication? || logged_in?
+ filter.execute(self, :user => current_user)
+
+ @widget_title = link_to h(filter.name), url_options
%>
- <%= render :partial => "measures/display_#{filter.display.key}", :locals => {:edit_mode => false, :widget => widget, :filter => filter} %>
-<% end %>
\ No newline at end of file
+ <%= render :partial => "measures/display_#{filter.display.key}", :locals => {:edit_mode => false, :widget => widget, :filter => filter} %>
+ <%
+ end
+ end
+ %>
\ No newline at end of file