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

Changed label to 'View in Portal'

This commit is contained in:
Hillel Coren 2018-03-26 22:31:45 +03:00
parent c7f5a5cd9c
commit b6e676b513
4 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class ProposalPresenter extends EntityPresenter
$invitation = $proposal->invitations->first(); $invitation = $proposal->invitations->first();
$actions = []; $actions = [];
$actions[] = ['url' => $invitation->getLink('proposal'), 'label' => trans("texts.view_as_recipient")]; $actions[] = ['url' => $invitation->getLink('proposal'), 'label' => trans("texts.view_in_portal")];
$actions[] = DropdownButton::DIVIDER; $actions[] = DropdownButton::DIVIDER;

View File

@ -2795,6 +2795,7 @@ $LANG = array(
'item_details' => 'Item Details', 'item_details' => 'Item Details',
'send_item_details_help' => 'Send the line item details to the payment gateway.', 'send_item_details_help' => 'Send the line item details to the payment gateway.',
'view_proposal' => 'View Proposal', 'view_proposal' => 'View Proposal',
'view_in_portal' => 'View in Portal',
); );

View File

@ -197,7 +197,7 @@
@if (Auth::user()->confirmed && $client->account->enable_client_portal) @if (Auth::user()->confirmed && $client->account->enable_client_portal)
<i class="fa fa-dashboard" style="width: 20px"></i><a href="{{ $contact->link }}" <i class="fa fa-dashboard" style="width: 20px"></i><a href="{{ $contact->link }}"
onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_client_portal') }} onclick="window.open('{{ $contact->link }}?silent=true', '_blank');return false;">{{ trans('texts.view_in_portal') }}
</a><br/> </a><br/>
@endif @endif
<br/> <br/>

View File

@ -785,7 +785,7 @@ function ContactModel(data) {
if (self.invitation_link()) { if (self.invitation_link()) {
// clicking adds 'silent=true' however it's removed when copying the link // clicking adds 'silent=true' however it's removed when copying the link
str += '<a href="' + self.invitation_link() + '" onclick="window.open(\'' + self.invitation_link() str += '<a href="' + self.invitation_link() + '" onclick="window.open(\'' + self.invitation_link()
+ '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_as_recipient') }}</a>'; + '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_in_portal') }}</a>';
} }
@endif @endif