Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (58 sloc) 1.73 KB
[% WRAPPER layout
title = "Perl Mongers: $country",
hide_masthead=1,
map_page=1
%]
<script type="text/javascript">
function initialize() {
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,
});
}
</script>
<div id="map_canvas"></div>
<p style="clear:both; height: 50px">&nbsp;</p>
[% IF groups.size %]
<p>The following groups are in [% country %], <a href="[% continent_link %]">[% continent %]</a>:</p>
<ol class="details">
[% IF country == 'United States of America' %]
[% USE table(groups.keys.sort, cols=3) %]
[% FOREACH col = [0,1,2] %]
<li id="d[% col + 1 %]">
<ul>
[% FOREACH state = table.col(col) %]
<h3><a href="/groups/[% states.$state %]">[% state %]</a></h3>
<ul>
[% FOREACH group = groups.$state %]
<li><a href="[% group.id %].html">[% group.name | html_entity %]</a></li>
[% END %]
</ul>
[% END %]
</ul>
</li>
[% END %]
[% ELSE %]
[% USE table(groups, cols=3) %]
[% FOREACH col = [0,1,2] %]
<li id="d[% col + 1 %]">
<ul>
[% FOREACH group = table.col(col) %]
<li><a href="[% group.id %].html">[% group.name | html_entity %]</a></li>
[% END %]
</ul>
</li>
[% END %]
[% END %]
</ol>
[% ELSE %]
<p>There are currently no groups in [% continent %].</p>
[% END %]
[% END %]