Method: SectionRenderer#spinner_render_hash
- Defined in:
- app/presentation/section_renderer.rb
#spinner_render_hash ⇒ Object
A hash suitable to be passed to Rails render(), to render a spinner for this section. Called by section_display partial, nobody else should need to call it.
337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'app/presentation/section_renderer.rb', line 337 def spinner_render_hash custom_item_name = I18n.t("load_more_item_name", :scope => "umlaut.display_sections.#{self.div_id}", :default => "") custom_item_name = nil if custom_item_name.blank? { :partial => "background_progress", :locals =>{ :svc_types => service_type_values, :div_id => "progress_#{self.div_id}", :current_set_empty => responses_empty?, :item_name => custom_item_name } } end |