From d91e9b372f57363fca4305da5e156438d8ed213d Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Thu, 12 Nov 2020 17:20:57 +0100 Subject: [PATCH] add sendinblue login link to manager --- app/views/manager/application/_navigation.html.erb | 3 +++ config/env.example | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/manager/application/_navigation.html.erb b/app/views/manager/application/_navigation.html.erb index c882d4a05..f14689546 100644 --- a/app/views/manager/application/_navigation.html.erb +++ b/app/views/manager/application/_navigation.html.erb @@ -25,4 +25,7 @@ as defined by the routes in the `admin/` namespace <%= link_to "Delayed Jobs", manager_delayed_job_path, class: "navigation__link" %> <%= link_to "Features", manager_flipper_path, class: "navigation__link" %> + <% if Rails.env.production? %> + <%= link_to "Sendinblue", ENV.fetch("SENDINBLUE_LOGIN_URL"), class: "navigation__link", target: '_blank' %> + <% end %> diff --git a/config/env.example b/config/env.example index e2d5d339d..f58214188 100644 --- a/config/env.example +++ b/config/env.example @@ -20,10 +20,11 @@ SIGNING_KEY="aef3153a9829fa4ba10acb02927ac855df6b92795b1ad265d654443c4b14a017" # Clé de chiffrement OTP, pour 2FA OTP_SECRET_KEY="" -# Clé et certificat pour SAML IdP +# SAML IdP # SAML_IDP_CERTIFICATE="billybop" # SAML_IDP_SECRET_KEY="-----BEGIN RSA PRIVATE KEY-----\nblabla+blabla\n-----END RSA PRIVATE KEY-----\n" +# SENDINBLUE_LOGIN_URL="https://app.sendinblue.com/account/saml/login/truc" # Database DB_DATABASE="tps_development"