1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Add "Back to :url" link on client portal login page

This commit is contained in:
Benjamin Beganović 2021-07-23 13:26:34 +02:00
parent 540e1a53cf
commit ce4d64a1a7
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>