From 34cd4b624404cd12464ede49d2be58ba6a7a0f7e Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 19 Aug 2024 14:15:36 +0100 Subject: [PATCH] Added links to apple/google maps Signed-off-by: snipe --- resources/lang/en-US/admin/locations/message.php | 1 + resources/views/locations/view.blade.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/resources/lang/en-US/admin/locations/message.php b/resources/lang/en-US/admin/locations/message.php index 5ba6e5109c..488ec9c670 100644 --- a/resources/lang/en-US/admin/locations/message.php +++ b/resources/lang/en-US/admin/locations/message.php @@ -8,6 +8,7 @@ return array( 'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ', 'assigned_assets' => 'Assigned Assets', 'current_location' => 'Current Location', + 'open_map' => 'Open in :map_provider_icon Maps', 'create' => array( diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 7c9d203b07..7b528332ff 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -418,6 +418,21 @@ @if ($location->ldap_ou)
  • {{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}
  • @endif + + @if ((($location->address!='') && ($location->city!='')) || ($location->state!='') || ($location->country!='')) +
  • + + {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!} + + +
  • +
  • + + {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!} + +
  • + @endif +