From 8d6c683cb6d54c7ac310b09989653285ad33b521 Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Fri, 13 Oct 2023 17:19:48 +0200
Subject: [PATCH] updates

---
 app/views/mailers/notifications/low_sms_credits.html.erb | 2 +-
 config/locales/en.yml                                    | 2 +-
 config/locales/fr.yml                                    | 2 +-
 db/migrate/20231013090313_change_imports_user_nil.rb     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/views/mailers/notifications/low_sms_credits.html.erb b/app/views/mailers/notifications/low_sms_credits.html.erb
index 4814cbc30..3bf50e278 100644
--- a/app/views/mailers/notifications/low_sms_credits.html.erb
+++ b/app/views/mailers/notifications/low_sms_credits.html.erb
@@ -1,3 +1,3 @@
 <p><%= t('mailers.notifications.low_sms_credits.body_1_html', credits: @credits) %></p>
-<p><%= t('mailers.notifications.low_sms_credits.body_2_html', link: 'https://app.sendinblue.com/billing/addon/customize/sms') %></p>
+<p><%= t('mailers.notifications.low_sms_credits.body_2_html', link: 'https://app.brevo.com/billing/account/customize/message-credits') %></p>
 <p><%= t('mailers.yours') %></p>
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 231cd80d1..95e5cba29 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -284,7 +284,7 @@ en:
       website_invalid_access_token:
         subject: "Expired access token for \"%{website}\""
         text_line_1_html: "The access token used for the website \"%{website}\" has expired and does not allow the website to be updated anymore."
-        text_line_2_html: "To solve this issue, please fill in a new access token by clicking <a href=\"%{url}\">here</a>."
+        text_line_2_html: "To solve this issue, please fill in a new access token by clicking <a href=\"%{url}\" target=\"_blank\" style=\"color: #c72b43;\">here</a>."
     yours: Yours.
   menu:
     admin: Admin
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index e8d5a2e1f..a9947df5c 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -284,7 +284,7 @@ fr:
       website_invalid_access_token:
         subject: Jeton d'accès expiré pour « %{website} »
         text_line_1_html: Le jeton d'accès utilisé pour le site « %{website} » a expiré et ne permet plus la mise à jour du site.
-        text_line_2_html: "Pour résoudre ce problème, veuillez renseigner un nouveau jeton d'accès en cliquant <a href=\"%{url}\">ici</a>."
+        text_line_2_html: "Pour résoudre ce problème, veuillez renseigner un nouveau jeton d'accès en cliquant <a href=\"%{url}\" target=\"_blank\" style=\"color: #c72b43;\">ici</a>."
     yours: Cordialement.
   menu:
     admin: Admin
diff --git a/db/migrate/20231013090313_change_imports_user_nil.rb b/db/migrate/20231013090313_change_imports_user_nil.rb
index 495d4d27b..00404e407 100644
--- a/db/migrate/20231013090313_change_imports_user_nil.rb
+++ b/db/migrate/20231013090313_change_imports_user_nil.rb
@@ -1,5 +1,5 @@
 class ChangeImportsUserNil < ActiveRecord::Migration[7.0]
   def change
-    change_column :imports, :user_id, :uuid, null: true
+    change_column_null :imports, :user_id, true
   end
 end
-- 
GitLab