From b6e587992cd3d2c637248907c67b1fc401065cd1 Mon Sep 17 00:00:00 2001 From: Kelly Hong Date: Sun, 25 Jun 2023 14:44:25 -0700 Subject: [PATCH 1/2] display domain on Space config --- app/views/spaces/_website_settings.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/spaces/_website_settings.html.erb b/app/views/spaces/_website_settings.html.erb index adb4718ac..f2121ab2d 100644 --- a/app/views/spaces/_website_settings.html.erb +++ b/app/views/spaces/_website_settings.html.erb @@ -4,6 +4,13 @@

<%= t('website_settings.help_text') %>

+

Domain

+ <% if space.branded_domain.present? %> +

<%= space.branded_domain %>

+ <% else %> +

No domain

+ <% end %> + <%= form_with model: space.location do | web_settings_form | %> <%= web_settings_form.label :enforce_ssl do %> <%= web_settings_form.check_box :enforce_ssl %> From c5b6ce041bd90d69444aa073276de51e14ab7b44 Mon Sep 17 00:00:00 2001 From: Kelly Hong Date: Wed, 28 Jun 2023 18:02:17 -0700 Subject: [PATCH 2/2] refactor display branded domain Co-authored-by: Zee Spencer Co-authored-by: Ana Co-authored-by: Dalton Pruitt --- app/views/spaces/_website_settings.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spaces/_website_settings.html.erb b/app/views/spaces/_website_settings.html.erb index f2121ab2d..edfb987b8 100644 --- a/app/views/spaces/_website_settings.html.erb +++ b/app/views/spaces/_website_settings.html.erb @@ -6,7 +6,7 @@

Domain

<% if space.branded_domain.present? %> -

<%= space.branded_domain %>

+

<%= space.branded_domain.presence || "No Domain" %>

<% else %>

No domain

<% end %>