Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (58 sloc) 1.69 KB
[% WRAPPER layout
title = "Perl Mongers: $continent",
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>
<div id="map_canvas" style="width:100%; height:450px"></div>
<p style="clear:both; height: 30px">&nbsp;</p>
[% IF groups.keys.size %]
<ol class="details">
<p>The following groups are in [% continent %]:</p>
[% countries = groups.keys.sort %]
[% USE table(countries, cols=3) %]
[% FOREACH col = [0,1,2] %]
<li id="d[% col + 1 %]">
[% FOREACH country = table.col(col) %]
<h2><a href="[% country_links.$country %]">[% country %]</a></h2>
[% IF country == 'United States of America' %]
[% FOREACH state = groups.$country.keys.sort %]
<h3><a href="/groups/[% states.$state %]">[% state %]</a></h3>
<ul>
[% FOREACH group = groups.$country.$state %]
<li><a href="[% group.id %].html">[% group.name | html_entity %]</a></li>
[% END %]
</ul>
[% END %]
[% ELSE %]
<ul>
[% FOREACH group = groups.$country %]
<li><a href="[% group.id %].html">[% group.name | html_entity %]</a></li>
[% END %]
</ul>
[% END %]
[% END %]
</li>
[% END %]
</ol>
[% ELSE %]
<p>There are currently no groups in [% continent %].</p>
[% END %]
[% END %]
</div>