use Current.application_name in app excluding mail

This commit is contained in:
simon lehericey 2024-03-20 11:34:54 +01:00
parent b9fcb25f1a
commit efa35e04a5
43 changed files with 66 additions and 66 deletions

View file

@ -1,6 +1,6 @@
= form_for user, url: { controller: 'users/activate', action: :create }, html: { class: "fr-py-5w" } do |f| = form_for user, url: { controller: 'users/activate', action: :create }, html: { class: "fr-py-5w" } do |f|
%h1.fr-h2.fr-mb-7w= t('.title', application_name: APPLICATION_NAME) %h1.fr-h2.fr-mb-7w= t('.title', application_name: Current.application_name)
.fr-background-alt--grey.fr-px-12w.fr-py-7w .fr-background-alt--grey.fr-px-12w.fr-py-7w
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'activate-account-legend' } } %fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'activate-account-legend' } }

View file

@ -2,7 +2,7 @@
.card-title .card-title
= t('.tokens_title') = t('.tokens_title')
%p %p
= t('.first_paragraph_html', application_name: APPLICATION_NAME, api_doc_url: API_DOC_URL) = t('.first_paragraph_html', application_name: Current.application_name, api_doc_url: API_DOC_URL)
= link_to t('.create_token'), nom_admin_api_tokens_path, class: "fr-btn fr-btn--secondary fr-mt-2w" = link_to t('.create_token'), nom_admin_api_tokens_path, class: "fr-btn fr-btn--secondary fr-mt-2w"

View file

@ -60,7 +60,7 @@ class FranceConnect::ParticulierController < ApplicationController
@fci.delete_merge_token! @fci.delete_merge_token!
@fci.delete_email_merge_token! @fci.delete_email_merge_token!
flash.notice = t('france_connect.particulier.flash.connection_done', application_name: APPLICATION_NAME) flash.notice = t('france_connect.particulier.flash.connection_done', application_name: Current.application_name)
connect_france_connect_particulier(user) connect_france_connect_particulier(user)
end end
else else
@ -74,7 +74,7 @@ class FranceConnect::ParticulierController < ApplicationController
@fci.update(user: user) @fci.update(user: user)
@fci.delete_merge_token! @fci.delete_merge_token!
flash.notice = t('france_connect.particulier.flash.connection_done', application_name: APPLICATION_NAME) flash.notice = t('france_connect.particulier.flash.connection_done', application_name: Current.application_name)
connect_france_connect_particulier(user) connect_france_connect_particulier(user)
else # same behaviour as redirect nicely with message when instructeur/administrateur else # same behaviour as redirect nicely with message when instructeur/administrateur
@fci.destroy @fci.destroy
@ -89,7 +89,7 @@ class FranceConnect::ParticulierController < ApplicationController
@fci.associate_user!(sanitized_email_params) @fci.associate_user!(sanitized_email_params)
@fci.delete_merge_token! @fci.delete_merge_token!
flash.notice = t('france_connect.particulier.flash.connection_done', application_name: APPLICATION_NAME) flash.notice = t('france_connect.particulier.flash.connection_done', application_name: Current.application_name)
connect_france_connect_particulier(@fci.user) connect_france_connect_particulier(@fci.user)
else else
@email = sanitized_email_params @email = sanitized_email_params
@ -117,7 +117,7 @@ class FranceConnect::ParticulierController < ApplicationController
@fci = FranceConnectInformation.find_by(email_merge_token: email_merge_token_params) @fci = FranceConnectInformation.find_by(email_merge_token: email_merge_token_params)
if @fci.nil? || !@fci.valid_for_email_merge? if @fci.nil? || !@fci.valid_for_email_merge?
flash.alert = t('france_connect.particulier.flash.merger_token_expired', application_name: APPLICATION_NAME) flash.alert = t('france_connect.particulier.flash.merger_token_expired', application_name: Current.application_name)
redirect_to root_path redirect_to root_path
else else
@ -129,7 +129,7 @@ class FranceConnect::ParticulierController < ApplicationController
@fci = FranceConnectInformation.find_by(merge_token: merge_token_params) @fci = FranceConnectInformation.find_by(merge_token: merge_token_params)
if @fci.nil? || !@fci.valid_for_merge? if @fci.nil? || !@fci.valid_for_merge?
flash.alert = t('france_connect.particulier.flash.merger_token_expired', application_name: APPLICATION_NAME) flash.alert = t('france_connect.particulier.flash.merger_token_expired', application_name: Current.application_name)
redirect_to root_path redirect_to root_path
end end

View file

@ -23,7 +23,7 @@ class Users::SessionsController < Devise::SessionsController
def reset_link_sent def reset_link_sent
if send_login_token_or_bufferize(current_instructeur) if send_login_token_or_bufferize(current_instructeur)
flash[:notice] = "Nous venons de vous renvoyer un nouveau lien de connexion sécurisée à #{APPLICATION_NAME}" flash[:notice] = "Nous venons de vous renvoyer un nouveau lien de connexion sécurisée à #{Current.application_name}"
end end
signed_email = message_verifier.generate(current_instructeur.email, purpose: :reset_link, expires_in: 1.hour) signed_email = message_verifier.generate(current_instructeur.email, purpose: :reset_link, expires_in: 1.hour)

View file

@ -8,7 +8,7 @@ module ConservationDeDonneesHelper
def conservation_dans_ds(procedure) def conservation_dans_ds(procedure)
if procedure.duree_conservation_dossiers_dans_ds.present? if procedure.duree_conservation_dossiers_dans_ds.present?
I18n.t('users.procedure_footer.legals.data_retention', I18n.t('users.procedure_footer.legals.data_retention',
application_name: APPLICATION_NAME, application_name: Current.application_name,
duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds) duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds)
end end
end end

View file

@ -163,7 +163,7 @@ class APIEntreprise::API
def base_params(siret_or_siren) def base_params(siret_or_siren)
{ {
context: APPLICATION_NAME, context: Current.application_name,
recipient: recipient_for(siret_or_siren), recipient: recipient_for(siret_or_siren),
non_diffusables: true non_diffusables: true
} }

View file

@ -13,9 +13,9 @@ class Helpscout::FormAdapter
def self.admin_options def self.admin_options
[ [
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_QUESTION], app_name: APPLICATION_NAME), ADMIN_TYPE_QUESTION], [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_QUESTION], app_name: Current.application_name), ADMIN_TYPE_QUESTION],
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_RDV], app_name: APPLICATION_NAME), ADMIN_TYPE_RDV], [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_RDV], app_name: Current.application_name), ADMIN_TYPE_RDV],
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_SOUCIS], app_name: APPLICATION_NAME), ADMIN_TYPE_SOUCIS], [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_SOUCIS], app_name: Current.application_name), ADMIN_TYPE_SOUCIS],
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_PRODUIT]), ADMIN_TYPE_PRODUIT], [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_PRODUIT]), ADMIN_TYPE_PRODUIT],
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_DEMANDE_COMPTE]), ADMIN_TYPE_DEMANDE_COMPTE], [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_DEMANDE_COMPTE]), ADMIN_TYPE_DEMANDE_COMPTE],
[I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_AUTRE]), ADMIN_TYPE_AUTRE] [I18n.t(:question, scope: [:support, :admin, ADMIN_TYPE_AUTRE]), ADMIN_TYPE_AUTRE]

View file

@ -5,7 +5,7 @@ module InitiationProcedureConcern
def create_initiation_procedure(administrateur) def create_initiation_procedure(administrateur)
p = Procedure.new( p = Procedure.new(
libelle: 'Une première procédure', libelle: 'Une première procédure',
description: "Une première procédure afin de découvrir les possibilités de #{APPLICATION_NAME}", description: "Une première procédure afin de découvrir les possibilités de #{Current.application_name}",
organisation: 'Dinum', organisation: 'Dinum',
cadre_juridique: "inexistant car c'est un test", cadre_juridique: "inexistant car c'est un test",
duree_conservation_dossiers_dans_ds: 1, duree_conservation_dossiers_dans_ds: 1,

View file

@ -42,7 +42,7 @@ class COJOService
def jwt_payload def jwt_payload
{ {
iss: APPLICATION_NAME, iss: Current.application_name,
iat: Time.zone.now.to_i, iat: Time.zone.now.to_i,
exp: 1.hour.from_now.to_i exp: 1.hour.from_now.to_i
} }

View file

@ -7,7 +7,7 @@ class WatermarkService
attr_reader :text attr_reader :text
attr_reader :text_length attr_reader :text_length
def initialize(text = APPLICATION_NAME) def initialize(text = Current.application_name)
@text = " #{text} " # give more space around each occurence @text = " #{text} " # give more space around each occurence
@text_length = @text.length @text_length = @text.length
end end

View file

@ -14,7 +14,7 @@
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c| = render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
- c.with_body do - c.with_body do
%p %p
= t('.api_particulier_description_html', app_name: APPLICATION_NAME) = t('.api_particulier_description_html', app_name: Current.application_name)
%fieldset.fr-fieldset %fieldset.fr-fieldset
.fr-fieldset__element .fr-fieldset__element

View file

@ -6,7 +6,7 @@
= f.label :email, class: "fr-label" do = f.label :email, class: "fr-label" do
Ajouter un administrateur Ajouter un administrateur
%span.fr-hint-text %span.fr-hint-text
= "Renseignez lemail dun administrateur déjà enregistré sur #{APPLICATION_NAME} pour lui permettre de modifier « #{procedure.libelle} ». Exemple : marie.dupont@exemple.fr" = "Renseignez lemail dun administrateur déjà enregistré sur #{Current.application_name} pour lui permettre de modifier « #{procedure.libelle} ». Exemple : marie.dupont@exemple.fr"
= f.email_field :email, required: true, class: "fr-input", autofocus: true, disabled: disabled_as_super_admin = f.email_field :email, required: true, class: "fr-input", autofocus: true, disabled: disabled_as_super_admin

View file

@ -25,7 +25,7 @@
.fr-input-group .fr-input-group
= f.label :duree_conservation_dossiers_dans_ds, class: 'fr-label' do = f.label :duree_conservation_dossiers_dans_ds, class: 'fr-label' do
Sur #{APPLICATION_NAME} Sur #{Current.application_name}
= render EditableChamp::AsteriskMandatoryComponent.new = render EditableChamp::AsteriskMandatoryComponent.new
= f.number_field :duree_conservation_dossiers_dans_ds, { class: 'fr-input', placeholder: '6', required: true, max: f.object.max_duree_conservation_dossiers_dans_ds } = f.number_field :duree_conservation_dossiers_dans_ds, { class: 'fr-input', placeholder: '6', required: true, max: f.object.max_duree_conservation_dossiers_dans_ds }

View file

@ -8,7 +8,7 @@
%br %br
Vous pouvez Vous pouvez
%a{ :href => DOC_INTEGRATION_MONAVIS_URL } consulter notre tutoriel complet %a{ :href => DOC_INTEGRATION_MONAVIS_URL } consulter notre tutoriel complet
pour intégrer le bouton « MonAvis » sur #{APPLICATION_NAME}. pour intégrer le bouton « MonAvis » sur #{Current.application_name}.
%br %br
%br %br
Une fois en possession du code généré sur le site MonAvis, vous pouvez le coller dans le champ ci-dessous : Une fois en possession du code généré sur le site MonAvis, vous pouvez le coller dans le champ ci-dessous :

View file

@ -29,7 +29,7 @@
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-my-2w') do |c| = render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-my-2w') do |c|
- c.with_body do - c.with_body do
%p= t('.public_link_procedure_html', link: APPLICATION_NAME) %p= t('.public_link_procedure_html', link: Current.application_name)
- elsif @procedure.brouillon? - elsif @procedure.brouillon?
- if @procedure.missing_steps.empty? - if @procedure.missing_steps.empty?

View file

@ -17,14 +17,14 @@
= render Dsfr::CalloutComponent.new(title: "Informations de contact") do |c| = render Dsfr::CalloutComponent.new(title: "Informations de contact") do |c|
- c.with_body do - c.with_body do
Votre démarche sera hébergée par #{APPLICATION_NAME} mais nous ne pouvons pas assurer le support des démarches. Et malgré la dématérialisation, les usagers se poseront parfois des questions légitimes sur le processus administratif. Votre démarche sera hébergée par #{Current.application_name} mais nous ne pouvons pas assurer le support des démarches. Et malgré la dématérialisation, les usagers se poseront parfois des questions légitimes sur le processus administratif.
%br %br
%br %br
%strong Il est donc indispensable que les usagers puissent vous contacter %strong Il est donc indispensable que les usagers puissent vous contacter
par le moyen de leur choix sils ont des questions sur votre démarche. par le moyen de leur choix sils ont des questions sur votre démarche.
%br %br
%br %br
Ces informations de contact seront visibles par les utilisateurs de la démarche, affichées dans le menu « Aide », ainsi quen pied de page lors du dépôt dun dossier. En cas dinformations invalides, #{APPLICATION_NAME} se réserve le droit de suspendre la publication de la démarche. Ces informations de contact seront visibles par les utilisateurs de la démarche, affichées dans le menu « Aide », ainsi quen pied de page lors du dépôt dun dossier. En cas dinformations invalides, #{Current.application_name} se réserve le droit de suspendre la publication de la démarche.
= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field) = render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field)
= render Dsfr::InputComponent.new(form: f, attribute: :telephone, input_type: :telephone_field) = render Dsfr::InputComponent.new(form: f, attribute: :telephone, input_type: :telephone_field)

View file

@ -10,7 +10,7 @@
- c.with_body do - c.with_body do
%p.fr-callout__text %p.fr-callout__text
Le SVA “Silence Vaut Accord” ou SVR “Silence Vaut Rejet” est un principe législatif qui définit le comportement dune demande en cas de silence de l'administration : soit la demande est automatiquement acceptée (SVA), soit elle est automatiquement rejetée (SVR). Le SVA “Silence Vaut Accord” ou SVR “Silence Vaut Rejet” est un principe législatif qui définit le comportement dune demande en cas de silence de l'administration : soit la demande est automatiquement acceptée (SVA), soit elle est automatiquement rejetée (SVR).
%strong= APPLICATION_NAME %strong= Current.application_name
permet lapplication de ce principe pour les démarches concernées. permet lapplication de ce principe pour les démarches concernées.
%p.fr-callout__text.fr-mt-2w %p.fr-callout__text.fr-mt-2w

View file

@ -9,7 +9,7 @@
#session-new.auth-form.sign-in-form #session-new.auth-form.sign-in-form
= form_for User.new, url: user_session_path do |f| = form_for User.new, url: user_session_path do |f|
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: APPLICATION_NAME) %h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: Current.application_name)
.fr-mb-0.fr-fieldset .fr-mb-0.fr-fieldset
.fr-fieldset__legend .fr-fieldset__legend
@ -68,5 +68,5 @@
= render Dsfr::CalloutComponent.new(title: t('.full_deploy_title'), icon: 'fr-icon-information-line') do |c| = render Dsfr::CalloutComponent.new(title: t('.full_deploy_title'), icon: 'fr-icon-information-line') do |c|
- c.with_body do - c.with_body do
= t('.full_deploy_body') = t('.full_deploy_body')
%h2.fr-h6= t('.whats_ds', application_name: APPLICATION_NAME) %h2.fr-h6= t('.whats_ds', application_name: Current.application_name)
= image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: "" = image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: ""

View file

@ -10,7 +10,7 @@
= link_to commencer_sign_up_path(path: @procedure.path, prefill_token: @prefilled_dossier&.prefill_token), class: 'fr-btn' do = link_to commencer_sign_up_path(path: @procedure.path, prefill_token: @prefilled_dossier&.prefill_token), class: 'fr-btn' do
= t('views.shared.account.create') = t('views.shared.account.create')
%span.optional-on-small-screens.fr-ml-1v %span.optional-on-small-screens.fr-ml-1v
#{APPLICATION_NAME} #{Current.application_name}
%li= link_to t('views.shared.account.already_user'), commencer_sign_in_path(path: @procedure.path, prefill_token: @prefilled_dossier&.prefill_token), class: 'fr-btn fr-btn--secondary' %li= link_to t('views.shared.account.already_user'), commencer_sign_in_path(path: @procedure.path, prefill_token: @prefilled_dossier&.prefill_token), class: 'fr-btn fr-btn--secondary'
- else - else

View file

@ -5,7 +5,7 @@
%p.dossier Dossier nº #{@dossier.id} %p.dossier Dossier nº #{@dossier.id}
.column .column
= form_for(User.new(email: @email), url: sign_up_expert_avis_path(email: @email), method: :post, html: { class: "fr-py-5w" }) do |f| = form_for(User.new(email: @email), url: sign_up_expert_avis_path(email: @email), method: :post, html: { class: "fr-py-5w" }) do |f|
%h1.fr-h2= t('views.registrations.new.title', name: APPLICATION_NAME) %h1.fr-h2= t('views.registrations.new.title', name: Current.application_name)
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'create-account-legend' } } %fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'create-account-legend' } }
.fr-fieldset__element .fr-fieldset__element
%p.fr-text--sm= t('utils.mandatory_champs') %p.fr-text--sm= t('utils.mandatory_champs')

View file

@ -1,5 +1,5 @@
%p %p
= t('.already_exists', email: email, application_name: APPLICATION_NAME) = t('.already_exists', email: email, application_name: Current.application_name)
%br %br
= t('.fill_in_password') = t('.fill_in_password')

View file

@ -1,9 +1,9 @@
= content_for :title, "Fusion des comptes FC et #{APPLICATION_NAME}" = content_for :title, "Fusion des comptes FC et #{Current.application_name}"
.container .container
%h1.page-title= t('.title', application_name: APPLICATION_NAME) %h1.page-title= t('.title', application_name: Current.application_name)
%p= t('.subtitle', email: sanitize(@fci.email_france_connect), application_name: APPLICATION_NAME).html_safe %p= t('.subtitle', email: sanitize(@fci.email_france_connect), application_name: Current.application_name).html_safe
.form.mt-2 .form.mt-2
%label= t('.label_select_merge_flow', email: @fci.email_france_connect) %label= t('.label_select_merge_flow', email: @fci.email_france_connect)
@ -34,7 +34,7 @@
.new-account.hidden .new-account.hidden
%p= t('.title_fill_in_email', application_name: APPLICATION_NAME) %p= t('.title_fill_in_email', application_name: Current.application_name)
= form_tag france_connect_particulier_merge_with_new_account_path, data: { turbo: true }, class: 'mt-2 form' do = form_tag france_connect_particulier_merge_with_new_account_path, data: { turbo: true }, class: 'mt-2 form' do
= hidden_field_tag :merge_token, @fci.merge_token, id: dom_id(@fci, :new_account_merge_token) = hidden_field_tag :merge_token, @fci.merge_token, id: dom_id(@fci, :new_account_merge_token)

View file

@ -4,12 +4,12 @@
%meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" } %meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" }
%meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" } %meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" }
%meta{ name: "viewport", content: "width=device-width, initial-scale=1" } %meta{ name: "viewport", content: "width=device-width, initial-scale=1" }
%meta{ name: "application-name", content: APPLICATION_NAME } %meta{ name: "application-name", content: Current.application_name }
%meta{ name: "apple-mobile-web-app-title", content: APPLICATION_NAME } %meta{ name: "apple-mobile-web-app-title", content: Current.application_name }
= csrf_meta_tags = csrf_meta_tags
%title %title
= content_for?(:title) ? "#{yield(:title)} · #{APPLICATION_NAME}" : APPLICATION_NAME = content_for?(:title) ? "#{yield(:title)} · #{Current.application_name}" : Current.application_name
= render partial: "layouts/favicons" = render partial: "layouts/favicons"

View file

@ -3,7 +3,7 @@
= render Dsfr::CalloutComponent.new(title: "Informations de contact") do |c| = render Dsfr::CalloutComponent.new(title: "Informations de contact") do |c|
- c.with_body do - c.with_body do
Votre démarche est hébergée par #{APPLICATION_NAME} mais nous ne pouvons pas assurer le support des démarches. Et malgré la dématérialisation, les usagers se posent parfois des questions légitimes sur le processus administratif. Votre démarche est hébergée par #{Current.application_name} mais nous ne pouvons pas assurer le support des démarches. Et malgré la dématérialisation, les usagers se posent parfois des questions légitimes sur le processus administratif.
%br %br
%br %br
%strong Il est donc indispensable que les usagers puissent vous contacter %strong Il est donc indispensable que les usagers puissent vous contacter
@ -13,7 +13,7 @@
Ces informations de contact seront visibles par les utilisateurs de la démarche, affichées dans le menu « Aide », ainsi quen pied de page lors du dépôt dun dossier. Ces informations de contact seront visibles par les utilisateurs de la démarche, affichées dans le menu « Aide », ainsi quen pied de page lors du dépôt dun dossier.
%br %br
%br %br
⚠️ En cas dinformations invalides, #{APPLICATION_NAME} se réserve le droit de suspendre la publication de la démarche. ⚠️ En cas dinformations invalides, #{Current.application_name} se réserve le droit de suspendre la publication de la démarche.
= render Dsfr::InputComponent.new(form: f, attribute: :nom, input_type: :text_field) do |c| = render Dsfr::InputComponent.new(form: f, attribute: :nom, input_type: :text_field) do |c|
- c.with_hint do - c.with_hint do

View file

@ -25,8 +25,8 @@
.fr-header__service .fr-header__service
- root_profile_link, root_profile_libelle = root_path_info_for_profile(nav_bar_profile) - root_profile_link, root_profile_libelle = root_path_info_for_profile(nav_bar_profile)
= link_to root_profile_link, title: "#{root_profile_libelle} — #{APPLICATION_NAME}" do = link_to root_profile_link, title: "#{root_profile_libelle} — #{Current.application_name}" do
%p.fr-header__service-title= APPLICATION_NAME %p.fr-header__service-title= Current.application_name
.fr-header__tools .fr-header__tools
.fr-header__tools-links.relative .fr-header__tools-links.relative

View file

@ -12,7 +12,7 @@
- else - else
.site-banner-text .site-banner-text
%strong %strong
#{browser.name} #{browser.version} est trop ancien pour utiliser #{APPLICATION_NAME}. #{browser.name} #{browser.version} est trop ancien pour utiliser #{Current.application_name}.
%br %br
Certaines parties du site ne fonctionneront pas correctement. Certaines parties du site ne fonctionneront pas correctement.
.site-banner-actions .site-banner-actions

View file

@ -4,12 +4,12 @@
%meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" } %meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" }
%meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" } %meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" }
%meta{ name: "viewport", content: "width=device-width, initial-scale=1" } %meta{ name: "viewport", content: "width=device-width, initial-scale=1" }
%meta{ name: "application-name", content: APPLICATION_NAME } %meta{ name: "application-name", content: Current.application_name }
%meta{ name: "apple-mobile-web-app-title", content: APPLICATION_NAME } %meta{ name: "apple-mobile-web-app-title", content: Current.application_name }
= csrf_meta_tags = csrf_meta_tags
%title %title
= content_for?(:title) ? "#{sanitize(yield(:title))} · #{APPLICATION_NAME}" : APPLICATION_NAME = content_for?(:title) ? "#{sanitize(yield(:title))} · #{Current.application_name}" : Current.application_name
= render partial: "layouts/favicons" = render partial: "layouts/favicons"

View file

@ -6,5 +6,5 @@
%p= t('.line2') %p= t('.line2')
%p= t('.line3') %p= t('.line3')
%hr %hr
%p.small-simple= t('.are_you_new', app_name: APPLICATION_NAME.gsub("-","&#8209;")).html_safe %p.small-simple= t('.are_you_new', app_name: Current.application_name.gsub("-","&#8209;")).html_safe
= link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes = link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes

View file

@ -4,12 +4,12 @@
%meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" } %meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" }
%meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" } %meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" }
%meta{ name: "viewport", content: "width=device-width, initial-scale=1" } %meta{ name: "viewport", content: "width=device-width, initial-scale=1" }
%meta{ name: "application-name", content: APPLICATION_NAME } %meta{ name: "application-name", content: Current.application_name }
%meta{ name: "apple-mobile-web-app-title", content: APPLICATION_NAME } %meta{ name: "apple-mobile-web-app-title", content: Current.application_name }
= csrf_meta_tags = csrf_meta_tags
%title %title
= content_for?(:title) ? "#{yield(:title)} · #{APPLICATION_NAME}" : APPLICATION_NAME = content_for?(:title) ? "#{yield(:title)} · #{Current.application_name}" : Current.application_name
= render partial: "layouts/favicons" = render partial: "layouts/favicons"

View file

@ -3,8 +3,8 @@
%meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" } %meta{ "http-equiv": "Content-Type", content: "text/html; charset=UTF-8" }
%meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" } %meta{ "http-equiv": "X-UA-Compatible", content: "IE=edge" }
%meta{ name: "viewport", content: "width=device-width, initial-scale=1" } %meta{ name: "viewport", content: "width=device-width, initial-scale=1" }
%meta{ name: "application-name", content: APPLICATION_NAME } %meta{ name: "application-name", content: Current.application_name }
%meta{ name: "apple-mobile-web-app-title", content: APPLICATION_NAME } %meta{ name: "apple-mobile-web-app-title", content: Current.application_name }
= csrf_meta_tags = csrf_meta_tags
%title %title

View file

@ -1,5 +1,5 @@
.fr-container.fr-my-5w .fr-container.fr-my-5w
%h2.fr-mb-5w= t('.title', app_name: APPLICATION_NAME) %h2.fr-mb-5w= t('.title', app_name: Current.application_name)
.fr-grid-row.fr-grid-row--gutters{ data: { turbo: 'true' } } .fr-grid-row.fr-grid-row--gutters{ data: { turbo: 'true' } }
.fr-col-md-3 .fr-col-md-3

View file

@ -1,6 +1,6 @@
.fr-py-6w .fr-py-6w
.container .container
%h2.center.fr-mb-4w Ils utilisent déjà #{APPLICATION_NAME} %h2.center.fr-mb-4w Ils utilisent déjà #{Current.application_name}
%ul.users %ul.users
%li.user %li.user

View file

@ -73,7 +73,7 @@
- cache([I18n.locale, "numbers-panel"], expires_in: 3.hours) do - cache([I18n.locale, "numbers-panel"], expires_in: 3.hours) do
.fr-py-6w.fr-background-alt--blue-france .fr-py-6w.fr-background-alt--blue-france
.container .container
%h2.center.fr-mb-4w #{APPLICATION_NAME} en chiffres %h2.center.fr-mb-4w #{Current.application_name} en chiffres
%ul.numbers %ul.numbers
%li.number %li.number
.number-value .number-value

View file

@ -29,7 +29,7 @@
- cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do - cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do
.fr-py-6w .fr-py-6w
.container .container
%h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME) %h2.center.fr-mb-4w= t(".our_numbers", name: Current.application_name)
%ul.numbers %ul.numbers
%li.number %li.number
.number-value .number-value

View file

@ -14,7 +14,7 @@
%p %p
= mail_to service.email, = mail_to service.email,
service.email, service.email,
subject: "[#{APPLICATION_NAME}] Question sur le dossier Nº #{dossier.id} de la démarche Nº #{dossier.procedure.id}", subject: "[#{Current.application_name}] Question sur le dossier Nº #{dossier.id} de la démarche Nº #{dossier.procedure.id}",
rel: "noopener noreferrer", rel: "noopener noreferrer",
target: '_blank' target: '_blank'

View file

@ -10,7 +10,7 @@
%h1.fr-mb-4w %h1.fr-mb-4w
= t('views.accessibility_statement.title') = t('views.accessibility_statement.title')
%p.fr-mb-2w= t('views.accessibility_statement.line_one') %p.fr-mb-2w= t('views.accessibility_statement.line_one')
%p.fr-mb-2w= t('views.accessibility_statement.line_two', app_name: APPLICATION_NAME, host: URI(APPLICATION_BASE_URL).host) %p.fr-mb-2w= t('views.accessibility_statement.line_two', app_name: Current.application_name, host: URI(APPLICATION_BASE_URL).host)
%div %div
%h2 %h2

View file

@ -1,5 +1,5 @@
= content_for(:page_id, 'activate_account') = content_for(:page_id, 'activate_account')
= content_for(:title, t('metas.users.activate.title', application_name: APPLICATION_NAME)) = content_for(:title, t('metas.users.activate.title', application_name: Current.application_name))
.fr-container.fr-my-5w .fr-container.fr-my-5w
.fr-grid-row .fr-grid-row

View file

@ -94,7 +94,7 @@ prawn_document(margin: [top_margin, right_margin, bottom_margin, left_margin], p
pdf.fill_color black pdf.fill_color black
pdf.pad_top(100) do pdf.pad_top(100) do
pdf.text t('.generated_at', date: l(Time.zone.now.to_date, format: :long)), size: 10, character_spacing: -0.2, align: :right pdf.text t('.generated_at', date: l(Time.zone.now.to_date, format: :long)), size: 10, character_spacing: -0.2, align: :right
pdf.text t('.signature', app_name: APPLICATION_NAME), size: 10, character_spacing: -0.2, align: :right pdf.text t('.signature', app_name: Current.application_name), size: 10, character_spacing: -0.2, align: :right
end end
end end
end end

View file

@ -12,7 +12,7 @@
%section.link-sent-info %section.link-sent-info
%p %p
= t('views.users.passwords.reset_link_sent.email_sent_html', email: @email, application_name: APPLICATION_NAME) = t('views.users.passwords.reset_link_sent.email_sent_html', email: @email, application_name: Current.application_name)
%p %p
= t('views.users.passwords.reset_link_sent.click_link_to_reset_password') = t('views.users.passwords.reset_link_sent.click_link_to_reset_password')
%p %p
@ -24,7 +24,7 @@
%li %li
= t('views.users.passwords.reset_link_sent.check_spams') = t('views.users.passwords.reset_link_sent.check_spams')
%li %li
= t('views.users.passwords.reset_link_sent.check_account', email: @email, application_name: APPLICATION_NAME) = t('views.users.passwords.reset_link_sent.check_account', email: @email, application_name: Current.application_name)
- if FranceConnectService.enabled? - if FranceConnectService.enabled?
%li %li
= t('views.users.passwords.reset_link_sent.check_france_connect_html', href: france_connect_particulier_path) = t('views.users.passwords.reset_link_sent.check_france_connect_html', href: france_connect_particulier_path)

View file

@ -40,7 +40,7 @@
%p.mb-4 %p.mb-4
= t('.email_explications_html', = t('.email_explications_html',
contact_email: CONTACT_EMAIL, contact_email: CONTACT_EMAIL,
application_name: APPLICATION_NAME, application_name: Current.application_name,
legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', ')) legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', '))
= form_for current_user, url: update_email_path, method: :patch do |f| = form_for current_user, url: update_email_path, method: :patch do |f|
@ -74,8 +74,8 @@
- if @france_connect_informations.present? - if @france_connect_informations.present?
.card .card
.card-title= t('.identities', count: @france_connect_informations.count, application_name: APPLICATION_NAME) .card-title= t('.identities', count: @france_connect_informations.count, application_name: Current.application_name)
%p= t('.linked_identities', count: @france_connect_informations.count, application_name: APPLICATION_NAME) %p= t('.linked_identities', count: @france_connect_informations.count, application_name: Current.application_name)
%ul %ul
- @france_connect_informations.each do |fci| - @france_connect_informations.each do |fci|
%li %li

View file

@ -4,7 +4,7 @@
= devise_error_messages! = devise_error_messages!
= form_for resource, url: user_registration_path, html: { class: "fr-py-5w" } do |f| = form_for resource, url: user_registration_path, html: { class: "fr-py-5w" } do |f|
%h1.fr-h2= t('views.registrations.new.title', name: APPLICATION_NAME) %h1.fr-h2= t('views.registrations.new.title', name: Current.application_name)
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path } = render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }

View file

@ -11,7 +11,7 @@
%section %section
%p.fr-text--lead %p.fr-text--lead
Nous venons de vous envoyer un courriel sur votre boite email <strong>#{@email}</strong>. Nous venons de vous envoyer un courriel sur votre boite email <strong>#{@email}</strong>.
Veuillez louvrir et cliquer sur le lien de <strong>connexion sécurisée à #{APPLICATION_NAME}</strong>. Veuillez louvrir et cliquer sur le lien de <strong>connexion sécurisée à #{Current.application_name}</strong>.
%p.fr-text--lead %p.fr-text--lead
Ce lien est <strong>valide une semaine</strong> et peut être réutilisé <strong>plusieurs fois</strong>. Ce lien est <strong>valide une semaine</strong> et peut être réutilisé <strong>plusieurs fois</strong>.

View file

@ -4,7 +4,7 @@
#session-new.auth-form.sign-in-form #session-new.auth-form.sign-in-form
= form_for resource, url: user_session_path, html: { class: "fr-py-5w" } do |f| = form_for resource, url: user_session_path, html: { class: "fr-py-5w" } do |f|
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: APPLICATION_NAME) %h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: Current.application_name)
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path } = render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }