Permalink
Browse files

Drop map.html - just show it on the /groups/ index page

  • Loading branch information...
1 parent 118bb97 commit a0d0c061299f1e22c2294ba9ff609e29bee071e5 @ranguard ranguard committed Jul 31, 2012
Showing with 38 additions and 28 deletions.
  1. +1 −1 lib/layout
  2. +7 −0 src/groups/group.html
  3. +26 −2 src/groups/index.html
  4. +4 −25 src/groups/map.html
View
2 lib/layout
@@ -30,7 +30,7 @@
<div id="nav_holder">
<nav>
<div id="large_copy">
- <a href="/groups/map.html">Find a group</a>
+ <a href="/groups/">Find a group</a>
<a href="/start/">Start a group</a>
<a href="/other/">Useful links</a>
</div>
View
7 src/groups/group.html
@@ -47,3 +47,10 @@
-->
[% END %]
+
+<p>Is your local group's latitude/longitude data wrong or missing? Please contact your
+group leader, 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>
View
28 src/groups/index.html
@@ -1,7 +1,31 @@
-[% WRAPPER layout title = "Perl Mongers: User groups" %]
+[% WRAPPER layout
+ title = "Perl Mongers: User groups",
+ hide_masthead=1,
+ map_page=1
+%]
+<script type="text/javascript">
+
+function initialize() {
+ var mapOptions = {
+ center: new google.maps.LatLng( 15, 0), // show the most pins possible
+ zoom: 2,
+ 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" style="width:100%; height:450px"></div>
+
+<p style="clear:both; height: 50px">&nbsp;</p>
-<h3><a href="/groups/map.html">World Map</a></h3>
<p>
or select a continent:
View
29 src/groups/map.html
@@ -1,36 +1,15 @@
[% WRAPPER layout
- title = "Perl Mongers: User groups map",
- hide_masthead=1,
+ title = "Page no longer exists",
map_page=1
%]
<script type="text/javascript">
-
function initialize() {
- var mapOptions = {
- center: new google.maps.LatLng( 15, 0), // show the most pins possible
- zoom: 2,
- 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,
- });
+ document.location.href="/groups/";
}
</script>
-<div id="map_canvas" style="width:100%; height:450px"></div>
-
-<p style="clear:both; height: 50px">&nbsp;</p>
-
-<p>Is your local group's latitude/longitude data wrong or missing? Please contact your
-group leader, 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>
+<h2>This page is no longer active, please see the main group overview</h2>
+<p>Redirecting to... <a href="/groups/">Perl user groups</a></p>
[% END %]

0 comments on commit a0d0c06

Please sign in to comment.