From cb2132032bf8bc88fdfb89ce32ee1e3b2e1451a2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 24 Dec 2017 11:33:02 +0200 Subject: [PATCH] Clarify subdomain/client portal link --- resources/lang/en/texts.php | 1 + resources/views/accounts/client_portal.blade.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index daeeb0dc60..fdf2ca6c55 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2622,6 +2622,7 @@ $LANG = array( 'new_status' => 'New Status', 'convert_products' => 'Convert Products', 'convert_products_help' => 'Automatically convert product prices to the client\'s currency', + 'improve_client_portal_link' => 'Set a subdomain to shorten the client portal link.', ); diff --git a/resources/views/accounts/client_portal.blade.php b/resources/views/accounts/client_portal.blade.php index 00e998d4b2..3fc51a525c 100644 --- a/resources/views/accounts/client_portal.blade.php +++ b/resources/views/accounts/client_portal.blade.php @@ -166,7 +166,8 @@ ->label(trans('texts.send_portal_password')) ->value(1) !!} {!! Former::plaintext('client_login') - ->value(link_to($account->present()->clientLoginUrl, null, ['target' => '_blank'])) !!} + ->value(link_to($account->present()->clientLoginUrl, null, ['target' => '_blank'])) + ->help(Utils::isNinja() && ! $account->subdomain && ! $account->iframe_url ? 'improve_client_portal_link' : '') !!}