diff --git a/app/views/tpi/companies/show.html.erb b/app/views/tpi/companies/show.html.erb index b8a9c23fb..8815e1a86 100644 --- a/app/views/tpi/companies/show.html.erb +++ b/app/views/tpi/companies/show.html.erb @@ -1,15 +1,16 @@ <% content_for :page_title, "#{@company.name} - Transition Pathway Initiative" %> <% content_for :page_description, "Assess how prepared #{@company.name} is for the transition to a low-carbon economy – its Management Quality and Carbon Performance." %> +<%= react_component('MqBetaModal', { + enabled: session[:enable_beta_mq_assessments] +}) %> + <% regional_view = @company.cp_alignment_region.present? && params[:view] == 'regional' %>
- <%= react_component('MqBetaModal', { - enabled: session[:enable_beta_mq_assessments] - }) %>
diff --git a/app/views/tpi/sectors/index.html.erb b/app/views/tpi/sectors/index.html.erb index 1141022d7..95958b3e4 100644 --- a/app/views/tpi/sectors/index.html.erb +++ b/app/views/tpi/sectors/index.html.erb @@ -1,6 +1,10 @@ <% content_for :page_title, "Tool - Transition Pathway Initiative" %> <% content_for :page_description, "The TPI tool is a corporate climate action benchmark which assesses how prepared companies are for the transition to a low-carbon economy." %> +<%= react_component('MqBetaModal', { + enabled: session[:enable_beta_mq_assessments] +}) %> +