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 +