diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-23 21:46:14 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-23 21:46:14 -0500 |
commit | ae14e320388fa5e7f400bff1c251ef885b7952e6 (patch) | |
tree | fe5375cf0a0619e148ecb9005984fc81f40d744b /httemplate/elements | |
parent | e1acfb2921b35fe097015208e8072a2675d01d69 (diff) |
71873: GlobalVision - directions [better error handling]
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/coord-links.html | 4 | ||||
-rw-r--r-- | httemplate/elements/google_maps_api_key.html | 15 |
2 files changed, 15 insertions, 4 deletions
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 - <A HREF="<%$p%>view/kml.cgi?<% $query %>"><% mt('earth') |h %></A> <%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'}) { +<P STYLE="color: red;"> +There was an authentication error when loading google maps. +Please check validity of existing key. +</P> +% } + +<P>In order to display google maps, your site administrator will need to set the +<B>google_maps_api_key</B> setting under Configuration -> Settings. Please see the Google Maps +<a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_top">Get +a Key/Authentication</a> documentation for information on acquiring a key.</P> + +<%init> +my %opt = @_; +</%init> |