-
Notifications
You must be signed in to change notification settings - Fork 54
/
group.html
64 lines (55 loc) · 1.58 KB
/
group.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[%
title = name _ " (" _ location _ ") Perl Mongers" | html_entity;
subtitle = name;
WRAPPER layout
title = title,
hide_masthead=1,
map_page=1
%]
<script type="text/javascript">
function initialize() {
[% IF latitude && longitude %]
var mapOptions = {
center: new google.maps.LatLng( [% latitude %], [% longitude %]), // show the most pins possible
zoom: [% zoom %],
mapTypeId: google.maps.MapTypeId.ROADMAP
};
PM.map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
$.ajax({
url: 'perl_mongers.json',
dataType: 'json',
success: processMapXML,
});
[% END %]
}
</script>
[% UNLESS latitude && longitude %]
<style type="text/css" media="screen">
#map_canvas {
height: 10px;
}
</style>
[% END %]
<div id="map_canvas"></div>
<p style="clear:both; height: 50px"> </p>
[% IF web %]
<b><a href="[% web %]">[% name | html_entity %]</a></b> ([% linked_location %])<br>
[% ELSE %]
<b>[% name | html_entity %]</b> ([% linked_location %])<br>
[% END %]
<p>
[% FOREACH t IN tsar %]
[% t.name | html_entity %] <[% t.mail %]><br>
[% END %]
</p>
<!--
[% IF mailing_list %]
[% mailing_list.name %]
[% END %]
-->
<p>Is this group's latitude/longitude data wrong or missing? Please contact the
group leader (above), and they can submit new coordinates to us. (This map is only as good as
our data: <a href="http://www.pm.org/groups/perl_mongers.xml">Master XML</a>
<a href="http://www.pm.org/groups/perl_mongers.json">Generated JSON</a>)
</p>
[% END %]