From 91c11775e77af5b209943f627a5cefb691eb7509 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Mon, 12 Feb 2024 10:23:16 +0000 Subject: [PATCH] refactor all instances of declined_reasons --- app/components/timeline_entry/component.html.erb | 7 +++++-- app/views/teacher_mailer/application_declined.text.erb | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/components/timeline_entry/component.html.erb b/app/components/timeline_entry/component.html.erb index fa7659fb9a..754a4fa273 100644 --- a/app/components/timeline_entry/component.html.erb +++ b/app/components/timeline_entry/component.html.erb @@ -74,8 +74,11 @@ <% end %> diff --git a/app/views/teacher_mailer/application_declined.text.erb b/app/views/teacher_mailer/application_declined.text.erb index e7508acd33..4e45113600 100644 --- a/app/views/teacher_mailer/application_declined.text.erb +++ b/app/views/teacher_mailer/application_declined.text.erb @@ -12,8 +12,12 @@ Thank you for applying for QTS in England. Unfortunately, your application has b <% end %> <% reasons.each do |reason| %> -<%= reason %> +<%= reason[:name] %> +<% if reason[:assessor_note].present? %> +<%= reason[:assessor_note] %> + +<% end %> <% end %> <% end %> <% unless @view_object.declined_cannot_reapply? || @view_object.from_ineligible_country? %>