From 318dfd83e129935a759f21838d61687b7d3565ac Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 2 Jan 2017 20:56:06 +0200 Subject: [PATCH] Local Pdf generation --- resources/lang/en/texts.php | 1 + resources/views/accounts/email_settings.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index fdca9cf3a..b1c4ab74d 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2296,6 +2296,7 @@ $LANG = array( 'exclusive' => 'Exclusive', 'postal_city_state' => 'Postal/City/State', 'phantomjs_help' => 'In certain cases the app uses :link_phantom to generate the PDF, install :link_docs to generate it locally.', + 'phantomjs_local' => 'Using local PhantomJS', ); diff --git a/resources/views/accounts/email_settings.blade.php b/resources/views/accounts/email_settings.blade.php index c7dfeebf8..ad0bb97f6 100644 --- a/resources/views/accounts/email_settings.blade.php +++ b/resources/views/accounts/email_settings.blade.php @@ -30,10 +30,10 @@ {!! Former::checkbox('pdf_email_attachment') ->text(trans('texts.enable')) - ->help( Utils::isNinja() && ! env('PHANTOMJS_BIN_PATH') ? trans('texts.phantomjs_help', [ + ->help( ! Utils::isNinja() ? (env('PHANTOMJS_BIN_PATH') ? 'phantomjs_local' : trans('texts.phantomjs_help', [ 'link_phantom' => link_to('https://phantomjscloud.com/', 'phantomjscloud.com', ['target' => '_blank']), 'link_docs' => link_to('https://www.invoiceninja.com/self-host/#phantomjs', 'PhantomJS', ['target' => '_blank']) - ]) : false) !!} + ])) : false) !!} {!! Former::checkbox('document_email_attachment') ->text(trans('texts.enable')) !!}