Hi Jim!

On Tuesday 09 September 2008, Jim Brandt wrote:
> We have a script that pulls all of the info we have out of The Perl
> Review's Google calendar. We currently have a task out there to modify
> this script to pull old events and put them on a history page. A
> volunteer is working on it. My plan was to have a history section and
> list events with one page for each year.
>
> If you're really eager, I could talk to the volunteer and transfer the
> task to someone else. All of the code to build the yapc site is in
> Google code here:
>
> http://tpf.googlecode.com/svn/trunk/yapc/yapc_org/
>
> You can see the last item in the TODO list is the history thing.

Here's a patch to do just that. Note that I placed all the old events on one 
page because:

1. It was easier to do.

2. I feel it would be easier to find something if you're not sure which year 
it took place.

3. Less clutter on the homepage.

Regards,

        Shlomi Fish

>
> Jim
>
> Jacinta Richardson wrote:
> > Gabor Szabo wrote:
> >> I was looking for the web sites of previous YAPCs and I could not
> >> find them on http://www.yapc.org/index.html
> >> Could you please tell me where can I find them?
> >> If they are not on that web site, would it be possible to add them?
> >
> > Excellent translation.  ;)
> >
> > With respect to storing this information, if one was to translate
> > Philippe's excellent YAML file into a nice XHTML page with links (where
> > they exist - not all will), how would you recommend it be ordered?  By
> > date?  Country? Continent?  I'm fairly sure it would be less than a day's
> > work (certainly no more than 2) to write a script which used that YAML
> > file to generate appropriate pages.  Perhaps if someone is eager they can
> > do so, and offer it to Jim Brandt as something that could be included on
> > the YAPC.org page.  It might not have any success, but at worst it's just
> > a little fun.  ;)
> >
> > All the best,
> >
> >     J



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Best Introductory Programming Language - http://xrl.us/bjn84

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
Index: lib/button_bar
===================================================================
--- lib/button_bar	(revision 30)
+++ lib/button_bar	(working copy)
@@ -2,7 +2,7 @@
   <ul>
 [% 
 # buttons = [ 'Home' 'YAPCs' 'Workshops' 'Hackathons' 'About' 'Contact' ];
-buttons = [ 'Home' 'YAPCs' 'Workshops' 'About' 'Contact' ];
+buttons = [ 'Home' 'YAPCs' 'Workshops' 'Old Events' 'About' 'Contact' ];
 
  button_links = {
   'Home' => 'index.html'
@@ -10,7 +10,9 @@
   'Workshops' => 'workshops.html'
 #  'Hackathons' => 'hackathons.html'
   'About' => 'about.html'
-  'Contact' => 'contact.html' } %]
+  'Contact' => 'contact.html'
+  'Old Events' => 'old-events.html'
+  } %]
 [% FOREACH button IN buttons %]
   [%  IF button == active %]
     <li><a href="[% button_links.$button %]" class="active">[% button %]</a></li>
Index: lib/yapc_desc
===================================================================
--- lib/yapc_desc	(revision 0)
+++ lib/yapc_desc	(revision 0)
@@ -0,0 +1,13 @@
+	<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
+	<div id="normalcontent">
+	<h3>Yet Another Perl Conference</h3>
+		<div class="contentarea">
+		<!-- Normal content area start -->
+
+		<img src="images/onion_64x64.png" class="left" alt="TPF onion logo" />
+		<p>The Yet Another Perl Conferences (YAPCs) are grassroots symposia on the Perl programming language promoted by <a href='http://perlfoundation.org'>The Perl Foundation</a>, a non-profit corporation dedicated to the advancement of the Perl programming language through open discussion, collaboration, design, and code. We also support other collaborative events such as Perl workshops and hackathons.</p>
+
+		<!-- Normal content area end -->
+		</div>
+	</div>
+
Index: src/old-events.html
===================================================================
--- src/old-events.html	(revision 0)
+++ src/old-events.html	(revision 0)
@@ -0,0 +1,31 @@
+[% INCLUDE header %]
+[% INCLUDE button_bar active='Old Events' %]
+
+	<div id="content">
+
+[% INCLUDE yapc_desc %]
+
+	<div class="divider1"></div>
+
+	<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
+	<div id="primarycontainer">
+		<div id="primarycontent">
+<!-- Primary content area start -->
+<h2>Old Perl Events</h2><a href='about.html'>Get your event listed here</a>
+<br /><br />
+[% INCLUDE "old-events" %]
+<!-- Primary content area end -->
+		</div>
+	</div>
+
+<!-- Secondary content: Stuff that goes in the secondary content column (by default, the narrower right column) -->
+<div id="secondarycontent">
+	<!-- Secondary content area start -->
+[% INCLUDE secondary %]
+[% INCLUDE secondary_links %]
+<!-- Secondary content area end -->
+</div>
+
+</div>
+
+[% INCLUDE footer %]
Index: src/index.html
===================================================================
--- src/index.html	(revision 30)
+++ src/index.html	(working copy)
@@ -2,20 +2,9 @@
 [% INCLUDE button_bar active='Home' %]
 
 	<div id="content">
-
-	<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
-	<div id="normalcontent">
-	<h3>Yet Another Perl Conference</h3>
-		<div class="contentarea">
-		<!-- Normal content area start -->
-
-		<img src="images/onion_64x64.png" class="left" alt="TPF onion logo" />
-		<p>The Yet Another Perl Conferences (YAPCs) are grassroots symposia on the Perl programming language promoted by <a href='http://perlfoundation.org'>The Perl Foundation</a>, a non-profit corporation dedicated to the advancement of the Perl programming language through open discussion, collaboration, design, and code. We also support other collaborative events such as Perl workshops and hackathons.</p>
-
-		<!-- Normal content area end -->
-		</div>
-	</div>
 	
+[% INCLUDE yapc_desc %]
+
 	<div class="divider1"></div>
 
 	<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
Index: bin/build
===================================================================
--- bin/build	(revision 30)
+++ bin/build	(working copy)
@@ -1,4 +1,5 @@
 
 bin/extract_cal_events.pl -f 'bin/events'
+bin/extract_cal_events.pl -s epoch -e now -f 'bin/old-events'
 
 ttree --file=etc/.ttreerc --eval_perl -a --pre_chomp $@

Reply via email to