From 83dd6450b06d2cf06a7a0ad91aa7d7a18062c9ff Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Fri, 23 Sep 2016 21:46:14 -0500 Subject: 71873: GlobalVision - directions [error handling v3 reconcile] --- httemplate/elements/coord-links.html | 4 ---- httemplate/elements/google_maps_api_key.html | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 httemplate/elements/google_maps_api_key.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/coord-links.html b/httemplate/elements/coord-links.html index a755791ae..f27ffd39f 100644 --- a/httemplate/elements/coord-links.html +++ b/httemplate/elements/coord-links.html @@ -1,7 +1,5 @@ <& /elements/init_overlib.html &> -% if ( $apikey ) { - <& /elements/popup_link.html, 'action' => $p. 'view/map.html?'. $query, 'label' => mt('map'), @@ -21,8 +19,6 @@ &> % } -% } # end if $apikey - <% mt('earth') |h %> <%init> diff --git a/httemplate/elements/google_maps_api_key.html b/httemplate/elements/google_maps_api_key.html new file mode 100644 index 000000000..0a4b7646c --- /dev/null +++ b/httemplate/elements/google_maps_api_key.html @@ -0,0 +1,15 @@ +% if ($opt{'autherror'}) { +

+There was an authentication error when loading google maps. +Please check validity of existing key. +

+% } + +

In order to display google maps, your site administrator will need to set the +google_maps_api_key setting under Configuration -> Settings. Please see the Google Maps +Get +a Key/Authentication documentation for information on acquiring a key.

+ +<%init> +my %opt = @_; + -- cgit v1.2.1