From b103922b1c071f029bfec7546dea999675117b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Knuchel?= Date: Sat, 5 Oct 2024 14:42:01 +0200 Subject: [PATCH 1/9] Clever Cloud adjustements --- .../azimutt_web/templates/clever_cloud/show.html.heex | 2 +- .../lib/azimutt_web/templates/heroku/show.html.heex | 10 +++++----- .../azimutt_web/templates/layout/root_elm.html.heex | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/backend/lib/azimutt_web/templates/clever_cloud/show.html.heex b/backend/lib/azimutt_web/templates/clever_cloud/show.html.heex index fa7fef290..fe95ec061 100644 --- a/backend/lib/azimutt_web/templates/clever_cloud/show.html.heex +++ b/backend/lib/azimutt_web/templates/clever_cloud/show.html.heex @@ -46,7 +46,7 @@
- +
diff --git a/backend/lib/azimutt_web/templates/heroku/show.html.heex b/backend/lib/azimutt_web/templates/heroku/show.html.heex index d4633134a..c6e4fe453 100644 --- a/backend/lib/azimutt_web/templates/heroku/show.html.heex +++ b/backend/lib/azimutt_web/templates/heroku/show.html.heex @@ -45,18 +45,18 @@
- - + +

- To get your database url, open your app settings, - click on "Reveal Config Vars" and look for the "DATABASE_URL" one. + To get your database URI, open your app settings, + click on "Reveal Config Vars" and look for the "DATABASE_URL" one.
It looks like: postgres://user:password@host:port/db
- Contact us if you have any trouble. + Learn more about Azimutt, or contact us for support.

<% end %>
diff --git a/backend/lib/azimutt_web/templates/layout/root_elm.html.heex b/backend/lib/azimutt_web/templates/layout/root_elm.html.heex index d3978f02b..76b20b490 100644 --- a/backend/lib/azimutt_web/templates/layout/root_elm.html.heex +++ b/backend/lib/azimutt_web/templates/layout/root_elm.html.heex @@ -12,10 +12,11 @@ member = org_id && assigns[:current_user] && assigns[:current_user].members |> Enum.find(fn m -> m.organization_id == org_id end) plan = member && Azimutt.Organizations.get_organization_plan(member.organization, assigns[:current_user]) |> Azimutt.Utils.Result.or_else(nil) org_gateway = plan && Azimutt.features().gateway_custom[plan] && member.organization.gateway + cc_gateway = member.organization.clever_cloud_resource && "https://azimutt-gateway.services.clever-cloud.com" %>