app/helpers/theme_helper.rb in woople-theme-0.2.47 vs app/helpers/theme_helper.rb in woople-theme-0.2.48
- old
+ new
@@ -42,15 +42,12 @@
model = ThemePresentation.wrap(send(WoopleTheme.configuration.menu_helper), MenuPresenter)
render 'woople-theme/menu', menu: model
end
- def results_header(title, path = nil)
- output = ""
- output << content_tag(:h2, title, class: 'results-header')
- output << content_tag(:a, I18n.t('woople_theme.search_results_more'), href: path, class: 'loading_indicator') unless path.nil?
- output.html_safe
+ def results_header title, path
+ render partial: 'woople-theme/results_header', locals: { title: title, path: path }
end
def assessment_form assessment_form
render partial: 'woople-theme/assessment_form', object: ThemePresentation.wrap(assessment_form, AssessmentFormPresenter)
end
@@ -64,6 +61,6 @@
return unless model.impersonating?
render 'woople-theme/impersonation_banner', impersonation: model
end
-end
\ No newline at end of file
+end