Add interstitial for Terms of Service updates (#34527)

This commit is contained in:
Claire 2025-05-16 16:03:05 +02:00 committed by GitHub
parent c4f47adb49
commit 8cc5084ca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 72 additions and 4 deletions

View file

@ -0,0 +1,15 @@
- content_for :header_tags do
%meta{ name: 'robots', content: 'noindex, noarchive' }/
- content_for :body_classes, 'app-body'
.simple_form
%h1.title= t('terms_of_service_interstitial.title', domain: site_hostname)
- effective_date = @terms_of_service.effective_date || Time.zone.today
%p.lead= effective_date.past? ? t('terms_of_service_interstitial.past_preamble_html') : t('terms_of_service_interstitial.future_preamble_html', date: l(effective_date))
%p.lead= t('user_mailer.terms_of_service_changed.agreement', domain: site_hostname)
.stacked-actions
= link_to t('terms_of_service_interstitial.review_link'), terms_of_service_path, class: 'button'