1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Merge pull request #6319 from beganovich/v5-600

Add "Back to $url" link on client portal login page
This commit is contained in:
David Bomba 2021-07-24 10:56:03 +10:00 committed by GitHub
commit 301d296c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -4286,6 +4286,7 @@ $LANG = array(
'user_created_user' => ':user created :created_user at :time',
'company_deleted' => 'Company deleted',
'company_deleted_body' => 'Company [ :company ] was deleted by :user',
'back_to' => 'Back to :url',
);
return $LANG;

View File

@ -73,6 +73,14 @@
<a class="button-link text-sm" href="{{ route('client.register') }}">{{ ctrans('texts.register_label') }}</a>
</div>
@endif
@if(!is_null($company) && !empty($company->getSetting('website')))
<div class="mt-5 text-center">
<a class="button-link text-sm" href="{{ $company->getSetting('website') }}">
{{ ctrans('texts.back_to', ['url' => parse_url($company->getSetting('website'))['host'] ?? $company->getSetting('website') ]) }}
</a>
</div>
@endif
</div>
</div>
</div>