Add link to time tracker docs

This commit is contained in:
Hillel Coren 2017-10-16 00:37:12 +03:00
parent b6d44d03be
commit 4366bc28ed
3 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@
return [ return [
// Marketing links // Marketing links
'time_tracker_web_url' => env('TIME_TRACKER_WEB_URL'), 'time_tracker_web_url' => env('TIME_TRACKER_WEB_URL', 'https://www.invoiceninja.com/time-tracker'),
// Hosted plan coupons // Hosted plan coupons
'coupon_50_off' => env('COUPON_50_OFF', false), 'coupon_50_off' => env('COUPON_50_OFF', false),

View File

@ -2482,6 +2482,7 @@ $LANG = array(
'time_hrs' => 'hrs', 'time_hrs' => 'hrs',
'clear' => 'Clear', 'clear' => 'Clear',
'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.', 'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.',
'setup_desktop_app' => 'Setup the desktop app',
); );
return $LANG; return $LANG;

View File

@ -585,8 +585,13 @@
toastr.options.positionClass = 'toast-bottom-right'; toastr.options.positionClass = 'toast-bottom-right';
if (navigator.userAgent != '{{ TIME_TRACKER_USER_AGENT }}') { if (navigator.userAgent != '{{ TIME_TRACKER_USER_AGENT }}') {
@if (Utils::isNinjaProd())
var link = '{{ config('ninja.time_tracker_web_url') }}'; var link = '{{ config('ninja.time_tracker_web_url') }}';
var message = "{{ trans('texts.download_desktop_app') }}"; var message = "{{ trans('texts.download_desktop_app') }}";
@else
var link = '{{ NINJA_DOCS_URL }}/configure.html#time-tracking-app';
var message = "{{ trans('texts.setup_desktop_app') }}";
@endif
if (isMobile) { if (isMobile) {
toastr.warning("{{ trans('texts.time_tracker_mobile_help')}}", false, { toastr.warning("{{ trans('texts.time_tracker_mobile_help')}}", false, {
timeOut: 5000, timeOut: 5000,