Commit 4705cdc5 authored by Axel García's avatar Axel García

add: GTM and OneTrust to terms view

- Move scripts views from layout to the view
- Add CSP to TermsController
parent 87fd6e5c
......@@ -3,6 +3,7 @@
module Users
class TermsController < ApplicationController
include InternalRedirect
include OneTrustCSP
skip_before_action :authenticate_user!, only: [:index]
skip_before_action :enforce_terms!
......
......@@ -3,12 +3,8 @@
- @hide_breadcrumbs = true
%html{ lang: I18n.locale, class: page_class }
= render "layouts/head"
- content_for :page_specific_javascripts do
= render "layouts/google_tag_manager_head"
= render "layouts/one_trust"
%body{ data: { page: body_data_page } }
= render "layouts/google_tag_manager_body"
.layout-page.terms{ class: page_class }
.content-wrapper.gl-pb-5
.mobile-overlay
......
- redirect_params = { redirect: @redirect } if @redirect
- accept_term_link = accept_term_path(@term, redirect_params)
- content_for :page_specific_javascripts do
= render "layouts/google_tag_manager_head"
= render "layouts/one_trust"
= render "layouts/google_tag_manager_body"
- if Feature.enabled?(:terms_of_service_vue, current_user, default_enabled: :yaml)
#js-terms-of-service{ data: { terms_data: terms_data(@term, @redirect) } }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment