From 67dd52b26118718a22b3cba670eda466e1ae8405 Mon Sep 17 00:00:00 2001 From: Kellie Date: Fri, 6 Sep 2024 11:10:32 +0100 Subject: [PATCH] Reorder course page sections --- app/views/find/courses/show.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/find/courses/show.html.erb b/app/views/find/courses/show.html.erb index 81413f82d5..403a663d8b 100644 --- a/app/views/find/courses/show.html.erb +++ b/app/views/find/courses/show.html.erb @@ -38,12 +38,12 @@ Contents - <% if @course.published_about_course.present? %> - <%= render partial: "find/courses/about_course", locals: { course: @course } %> - <% end %> + <%= render Find::Courses::AboutSchoolsComponent::View.new(@course, preview: preview?(params), filters_view: @filters_view) %> <% if @course.salaried? %> <%= render partial: "find/courses/salary", locals: { course: @course } %> @@ -62,7 +60,9 @@ <%= render Shared::Courses::FinancialSupport::FeesAndFinancialSupportComponent::View.new(@course) %> - <%= render Find::Courses::AboutSchoolsComponent::View.new(@course, preview: preview?(params), filters_view: @filters_view) %> + <% if @course.published_about_course.present? %> + <%= render partial: "find/courses/about_course", locals: { course: @course } %> + <% end %> <% if @course.published_interview_process.present? %> <%= render partial: "find/courses/interview_process", locals: { course: @course } %>