Merge pull request #6472 from pengfeidong/6471_not_show_link_when_sendinblue_disabled

Le lien SendInBlue n'est plus affiché lorsque SendInBlue est désactivé (#6472)
This commit is contained in:
Pierre de La Morinerie 2021-09-16 13:11:47 -05:00 committed by GitHub
commit 2092994fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +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? %>
<% if Rails.env.production? && ENV['SENDINBLUE_ENABLED'] == 'enabled'%>
<%= link_to "Sendinblue", ENV.fetch("SENDINBLUE_LOGIN_URL"), class: "navigation__link", target: '_blank' %>
<% end %>
</nav>