Skip to content

Commit

Permalink
New central america, cope with empty continents, lv update
Browse files Browse the repository at this point in the history
  • Loading branch information
leon committed Jan 30, 2005
1 parent 22c1d10 commit 442e909
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
8 changes: 7 additions & 1 deletion perlmongers/bin/xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ my %colours = (
'asia' => [255,255,0], 'asia' => [255,255,0],
'europe' => [128,128,255], 'europe' => [128,128,255],
'north_america' => [255,0,0], 'north_america' => [255,0,0],
'central_america' => [0,255,0],
'south_america' => [255,0,255], 'south_america' => [255,0,255],
'oceania' => [0,255,255], 'oceania' => [0,255,255],
); );
Expand Down Expand Up @@ -102,7 +103,12 @@ copy("./perl_mongers.xml", "www/groups/perl_mongers.xml");
copy("./perl_mongers.dtd", "www/groups/perl_mongers.dtd"); copy("./perl_mongers.dtd", "www/groups/perl_mongers.dtd");


#use YAML; die Dump(\%groups); #use YAML; die Dump(\%groups);
foreach my $continent (sort keys %groups) { my @continents = (
"Africa", "Asia", "Europe", "North America", "Central America",
"South America", "Oceania"
);

foreach my $continent (@continents) {
my $name = lc $continent; my $name = lc $continent;
$name =~ s/\W/_/g; $name =~ s/\W/_/g;
my $file = "www/groups/$name.html"; my $file = "www/groups/$name.html";
Expand Down
1 change: 1 addition & 0 deletions perlmongers/lib/layout
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
minor = { minor = {
"North America" => "/groups/north_america.html", "North America" => "/groups/north_america.html",
"South America" => "/groups/south_america.html", "South America" => "/groups/south_america.html",
"Central America" => "/groups/central_america.html",
"Europe" => "/groups/europe.html", "Europe" => "/groups/europe.html",
"Non-geographical" => "/groups/non_geographical.html", "Non-geographical" => "/groups/non_geographical.html",
"Oceania" => "/groups/oceania.html", "Oceania" => "/groups/oceania.html",
Expand Down
14 changes: 7 additions & 7 deletions perlmongers/perl_mongers.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@
<date type="inception">19990120</date> <date type="inception">19990120</date>
</group> </group>


<group id="51"> <group id="51" status="active">
<name>LasVegas.pm</name> <name>LasVegas.pm</name>
<location> <location>
<city>Las Vegas</city> <city>Las Vegas</city>
Expand All @@ -1450,14 +1450,14 @@
</location> </location>
<email type="group"></email> <email type="group"></email>
<tsar> <tsar>
<name>Gil Lopez</name> <name>Chris Angell</name>
<email type="personal">glopez@tothinkistocreate.com</email> <email type="personal">chrisangell@chrisangell.com</email>
</tsar> </tsar>
<web>http://lv.pm.org/</web> <web>http://lasvegas.pm.org/</web>
<mailing_list> <mailing_list>
<name>General LasVegas.pm discussion</name> <name>General LasVegas.pm discussion</name>
<email type="list">lv-pm@pm.org</email> <email type="list">lasvegas-pm@pm.org</email>
<email type="list_admin">glopez@tothinkistocreate.com</email> <email type="list_admin">majordomo@pm.org</email>
<subscribe></subscribe> <subscribe></subscribe>
<unsubscribe></unsubscribe> <unsubscribe></unsubscribe>
</mailing_list> </mailing_list>
Expand Down Expand Up @@ -12093,7 +12093,7 @@
<state></state> <state></state>
<region></region> <region></region>
<country>Costa Rica</country> <country>Costa Rica</country>
<continent>South America</continent> <continent>Central America</continent>
<longitude>-85.13</longitude> <longitude>-85.13</longitude>
<latitude>10.97</latitude> <latitude>10.97</latitude>
</location> </location>
Expand Down
10 changes: 10 additions & 0 deletions perlmongers/src/groups/continent.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<img src="[% image %]"> <img src="[% image %]">
[% END %] [% END %]


[% IF groups.keys.size %]

<p> <p>


The following groups are in [% continent %]: The following groups are in [% continent %]:
Expand All @@ -17,4 +19,12 @@ <h2>[% country %]</h2>
<li><a href="[% group.id %].html">[% group.name %]</a><br> <li><a href="[% group.id %].html">[% group.name %]</a><br>
[% END %] [% END %]
</ul> </ul>
[% END %]

[% ELSE %]

<p>

There are currently no groups in [% continent %].

[% END %] [% END %]
1 change: 1 addition & 0 deletions perlmongers/src/groups/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


[% link_to("/groups/africa.html", "Africa") %], [% link_to("/groups/africa.html", "Africa") %],
[% link_to("/groups/asia.html", "Asia") %], [% link_to("/groups/asia.html", "Asia") %],
[% link_to("/groups/central_america.html", "Central America") %],
[% link_to("/groups/europe.html", "Europe") %], [% link_to("/groups/europe.html", "Europe") %],
[% link_to("/groups/non_geographical.html", "Non-geographical") %], [% link_to("/groups/non_geographical.html", "Non-geographical") %],
[% link_to("/groups/north_america.html", "North America") %], [% link_to("/groups/north_america.html", "North America") %],
Expand Down

0 comments on commit 442e909

Please sign in to comment.