Commits

Anonymous committed c4422a9

Integrated the lectures manager with the rest of the site.

  • Participants
  • Parent commits 2a6b181

Comments (0)

Files changed (6)

File wml/Makefile

 
 RSYNC = rsync --progress --verbose --rsh=ssh 
 
-LIBRARY_FILES = template.wml lib/MyNavData.pm
+LIBRARY_FILES = template.wml lib/lectures_dest/2003.html lib/MyNavData.pm 
 
 # This is a file that does not change or is timestamped from invocation
 # to inovcation of this makefile. Useful for synchronizing uploads.
 $(SUBDIRS_DEST) :: % : $(UNCHANGED_FILE)
 	if [ ! -e $@ ] ; then mkdir $@ ; fi
 
-
-
 $(PODS_DESTS) :: $(TARGET)/% : src/%
 	cp -f $< $@
 
 $(PODS_DESTS_HTMLS) :: $(TARGET)/%.html : src/%.pod
 	pod2html $< > $@
 
+lib/lectures_dest/2003.html: lib/render_lectures.pl lib/LecturesData.pm
+	(cd lib && perl render_lectures.pl)
+
 # $(PACKAGES_DESTS) :: $(PACKAGES_DIR)/% : ./temp/lk-module-compiler-final/%
 # 	cp -f $< $@
 

File wml/lib/LecturesData.pm

     {
         'name' => "Orna Agmon",
         'name_render_type' => "homepage",
-        'subject_render' => "series_idx",
+        'subject_render' => "explicit_url",
         'homepage' => "http://tx.technion.ac.il/~agmon/",
     },
     'orna_and_mulix' =>
         'name' => "Shlomi Fish",
         'name_render_type' => "homepage",
         'homepage' => "http://www.shlomifish.org/",
-        'subject_render' => "shlomif",
+        'subject_render' => "explicit_url",
     },
     'shlomi_loubaton' =>
     {
         'name' => "Shachar Shemesh",
         'name_render_type' => "email",
         'email' => "haifux\@shemesh.biz",
-        'subject_render' => "series_idx",
+        'subject_render' => "explicit_url",
     },
     'telux_members' =>
     {
             's' => "Wine",
             'd' => "30/11",
             't' => [qw(prog system)],
+            'subject_render' => "no_url",
         },
         {
             l => "lior_kaplan",
             s => "The Mandrake Distribution",
             d => "30/5",
             url => "lin-club_files/mandrake-club.sxi",
-            comments => q{<a href="lin-club_files/mandrake-club.pdf">Lecture in PDF Format},
+            comments => q{<a href="lin-club_files/mandrake-club.pdf">Lecture in PDF Format</a>},
             t => [qw(system advocacy)],
         },
         {
             s => "Bourne Shell Programming",
             d => "23/1",
             t => ["system"],
+            'subject_render' => "no_url",
         },
         {
             l => "omer_zak_and_ori_idan",
             d => "6/2",
             url => "lecture-notes/Lecture112zak-A-2005jan09.pdf",
             t => ["system","util"],
-            comments => q{<a href="lecture-notes/Lecture112zak-A-2005jan09.sxi">>SXI Format</a><br /><a href="http://www.haifux.org/lectures/112/">Second Part of the Lecture</a>},
+            comments => q{<a href="lecture-notes/Lecture112zak-A-2005jan09.sxi">SXI Format</a><br /><a href="http://www.haifux.org/lectures/112/">Second Part of the Lecture</a>},
         },
         {
             l => "nir_simionovich",

File wml/lib/render_lectures.pl

 }
 continue
 {
-    if (defined($grouped_file_idx))
+    my $series = $lecture->{'series'};
+    my $lecture_idx = ($series_indexes{$series}++);
+    if (($series eq 'default') && ($lecture_idx == $last_idx_in_group))
     {
-        my $series = $lecture->{'series'};
-        my $lecture_idx = ($series_indexes{$series}++);
-        if (($series eq 'default') && ($lecture_idx == $last_idx_in_group))
+        $group_id++;
+        if (defined($grouped_file_idx))
         {
-            $group_id++;
             my $f = $files[$grouped_file_idx];
             my $buffer = $f->{'buffer'};
             $buffer .= $page_footer;

File wml/src/advanced-2004.html.wml

 All lectures will start at 18:30 in room 007,
 in the Schreiber building.
 </p>
-<table cellpadding="2" cellspacing="2" border="1" width="100%">
-  <tbody>
-    <tr>
-      <td valign="top" align="center">Subject<br /></td>
-      <td valign="top" align="center">Date<br /></td>
-      <td valign="top" align="center">Name<br /></td>
-      <td valign="top" align="center">Link<br /> </td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://vipe.technion.ac.il/~shlomif/lecture/Gimp/1/slides/">gimp</a></td>
-      <td valign="top" align="center">Sep 21</td>
-      <td valign="top" align="center"><a href="http://www.shlomifish.org/">Shlomi Fish (Technion)</a></td>
-      <td valign="top" align="center">(lec. part 1 / 2)</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://vipe.technion.ac.il/~shlomif/lecture/Gimp/1/slides/">gimp</a></td>
-      <td valign="top" align="center">Oct 19</td>
-      <td valign="top" align="center"><a href="http://www.shlomifish.org/">Shlomi Fish (Technion)</a></td>
-      <td valign="top" align="center">(lec. part 2 / 2)</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/~eddiea/docs/From_rpc_to_web_services.pdf">From RPC to web services</a></td>
-      <td valign="top" align="center">Nov 2</td>
-      <td valign="top" align="center"><a href="mailto:eddiea@cs.tau.ac.il?Subject:FROM_RPC_TO_WEB_SERVICES">Eddie Aronovich</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href='http://www.haifux.org/lectures/43/'>Intro to PHP</a></td>
-      <td valign="top" align="center">Nov 16</td>
-      <td valign="top" align="center"><a href="mailto:webmaster@guides.co.il">Lior Kaplan</a></td>
-      <td valign="top" align="center">(lec 1 / 2)</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left">Wine</td>
-      <td valign="top" align="center">Nov 30</td>
-      <td valign="top" align="center"><a href="http://www.shemesh.biz/">Shachar Shemesh</a></td>
-      <td valign="top" align="center"><a href="http://www.hamakor.org.il/">Hamakor</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.haifux.org/lectures/43/">Intro. to PHP</a></td>
-      <td valign="top" align="center">Dec 14</td>
-      <td valign="top" align="center"><a href="mailto:webmaster@guides.co.il">Lior Kaplan</a></td>
-      <td valign="top" align="center">(lec 2 / 2)</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/lin-club/lin-club_files/Full_Disclosure.sxi">Full disclosure</a></td>
-      <td valign="top" align="center">Dec 28</td>
-      <td valign="top" align="center">Aviram Jenik</td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/lin-club/lin-club_files/ embedded_telux.sxi">Embedded Linux</a></td>
-      <td valign="top" align="center">Jan 11</td>
-      <td valign="top" align="center"><a href="mailto:gilad@benyossef.com">Gilad Ben-Yossef</a></td>
-      <td valign="top" align="center">Embedded lecture</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left">OSCAR - tool for grid implementation</td>
-      <td valign="top" align="center">Jan 25</td>
-      <td valign="top" align="center"><a href="mailto:alex.landsberg@ligad.com">Alex Landsberg(Ligad)</a></td>
-      <td valign="top" align="center"><a href="http://oscar.openclustergroup.org/tiki-list_file_gallery.php?galleryId=4">oscar-mit (Jeremy Enos@MIT)</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://moshe.i-com-it.com/p/pres2/show.php?file=extending-php">Extending PHP</a></td>
-      <td valign="top" align="center">Feb 8</td>
-      <td valign="top" align="center"><a href="mailto:mosdoron@netvision.net.il">Moshe Doron</a></td>
-      <td valign="top" align="center">Hacking the core of PHP</td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/lin-club/lin-club_files/non-prog-oss.sxi">Open Source development model and How can you contribute?</a></td>
-      <td valign="top" align="center">Feb 22</td>
-      <td valign="top" align="center">Ori Idan &amp;<br /> Shoshana Forbes</td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/lin-club/lin-club_files/securing_linux.sxi.zip">Securing Linux</a></td>
-      <td valign="top" align="center">Mar 14</td>
-      <td valign="top" align="center"><a href="mailto:absint@netvision.net.il">Ohad Ben-Cohen</a></td>
-      <td valign="top" align="center"><a href="http://www.cs.tau.ac.il/lin-club/lin-club_files/securing_linux.ppt">securing Linux Plan</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://haifux.org/lectures/72/">Portable Programming</a></td>
-      <td valign="top" align="center">Mar 28</td>
-      <td valign="top" align="center"><a href="http://vipe.technion.ac.il/~ladypine/">Orna Agmon</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://www.cs.tau.ac.il/~eddiea/docs/apache-into-telux-2004-04.ps">Apache 2 - intro</a></td>
-      <td valign="top" align="center">Apr 18</td>
-      <td valign="top" align="center"><a href="http://www.cs.tau.ac.il/docs">Eddie Aronovich</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/gtk.sxi">GTK+</a></td>
-      <td valign="top" align="center">May 2</td>
-      <td valign="top" align="center"><a href="mailto:ori.at.helicontech.co.il">Ori Idan</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/linux-webhosting.pdf">Web hosting (1/2)</a></td>
-      <td valign="top" align="center">May 16</td>
-      <td valign="top" align="center"><a href="mailto:mike.at.lizard.co.il">Mike Almogy</a></td>
-      <td valign="top" align="center"><a href="./lin-club_files/linux-webhosting.sxi">sxi version</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/mandrake-club.sxi">Mandrake distribution</a></td>
-      <td valign="top" align="center">May 30</td>
-      <td valign="top" align="center"><a href="mailto:liberzon.at.eng.tau.ac.il">Dan Liberzon</a></td>
-      <td valign="top" align="center"><a href="./lin-club_files/mandrake-club.pdf">mandrake lecture (pdf format)</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://vipe.technion.ac.il/~shlomif/lecture/Autotools/">Autoconf</a></td>
-      <td valign="top" align="center">July 4</td>
-      <td valign="top" align="center"><a href="http://www.shlomifish.org/">Shlomi Fish</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/linux-webhosting.pdf">Web hosting (2/2)</a></td>
-      <td valign="top" align="center">July 18</td>
-      <td valign="top" align="center"><a href="mailto:mike.at.lizard.co.il">Mike Almogy</a></td>
-      <td valign="top" align="center"><a href="./lin-club_files/linux-webhosting.sxi">sxi version</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/bugzilla_for_end_uses.pdf">Bugzilla</a></td>
-      <td valign="top" align="center">August 1st</td>
-      <td valign="top" align="center"><a href="mailto:xslf@netvision.net.il">Shoshannah Forbes</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/linux-boot">Linux bootloaders</a></td>
-      <td valign="top" align="center">August 15</td>
-      <td valign="top" align="center"><a href="mailto:ori.at.helicontech.co.il">Ori Idan</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left">Asterisk, the Open-Source PABX System</td>
-      <td valign="top" align="center">August 29</td>
-      <td valign="top" align="center"><a href="http://www.benyossef.com/">Gilad Ben-Yossef</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="">Latest Kernel Developments (impressions from OLS2004)</a></td>
-      <td valign="top" align="center">Sep 5</td>
-      <td valign="top" align="center"><a href="http://vipe.technion.ac.il/~ladypine">Orna Agmon</a> &amp; <a href="http://www.mulix.org">Muli Ben-Yehuda</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="http://vipe.technion.ac.il/~shlomif/lecture/Freecell-Solver/">Freecell Solver - Evolution of a C Program</a></td>
-      <td valign="top" align="center">19 September 2004</td>
-      <td valign="top" align="center"><a href="http://www.shlomifish.org/">Shlomi Fish</a></td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left">
-	<a href="http://www.iglu.org.il/IGLU/modules.php?op=modload&amp;name=News&amp;file=article&amp;sid=64&amp;mode=thread&amp;order=0&amp;thold=0">Lightning Talks by Various People</a>
-      </td>
-      <td valign="top" align="center">10 October 2004</td>
-      <td valign="top" align="center">Telux Members</td>
-      <td valign="top" align="center"><br /></td>
-    </tr>
-    <tr>
-      <td valign="top" align="left"><a href="./lin-club_files/linux-boot">Linux bootloaders</a></td>
-      <td valign="top" align="center">24 October 2004</td>
-      <td valign="top" align="center"><a href="mailto:ori.at.helicontech.co.il">Ori Idan</a></td>
-      <td valign="top" align="center">Rerun of previous lecture</td>
-    </tr>
-  </tbody>
+
+<table border="1">
+#include '../lib/lectures_dest/2003.html'
+#include '../lib/lectures_dest/2004.html'
 </table>
 <br />
 

File wml/src/advanced.html.wml

 במהלך חופשות באוניברסיטה הכניסה תתאפשר דרך שערים 4 ו-8 בלבד. 
 </p>
 
-<table cellpadding="2" cellspacing="2" border="1" width="100%">
-  <tbody>
-    <tr>
-      <td valign="top" align="center">שם המרצה</td>
-      <td valign="top" align="center">תאריך</td>
-      <td valign="top" align="center">נושא ההרצאה</td>
-    </tr>
-    <tr>
-      <td valign="top" align="right">שחר שמש (מנכ"ל <a href="http://www.lingnu.com/">לינגנו</a>) </td>
-      <td valign="top" align="center">23 בינואר 2005</td>
-      <td valign="top" align="right">תכנות ב-Bourne Shell  (<a href="./abstracts/abstract-shachar-2005-23-01.txt">תקציר</a>)</td>
-    </tr>
-    <tr>
-      <td valign="top" align="right">עומר זק ואורי עידן</td>
-      <td valign="top" align="center">6 בפברואר 2005</td>
-      <td valign="top" align="right"><a href="lecture-notes/Lecture112zak-A-2005jan09.pdf ">נגישות בלינוקס</a> (<a href="lecture-notes/Lecture112zak-A-2005jan09.sxi">פורמט SXI</a>)
-	<a href="http://www.haifux.org/lectures/112/">חלק שני של ההרצאה</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="right">ניר סמיונוביץ'</td>
-      <td valign="top" align="center">27 בפברואר 2005</td>
-      <td valign="top" align="right"><a href="lecture-notes/Asterisk_Open_Source_PBX-Telux_Presentation.pdf">נושאים מתקדמים ב-Asterisk</a></td>
-    </tr>
-    <tr>
-      <td valign="top" align="right">חרות מעוז</td>
-      <td valign="top" align="center">20 במרץ 2005</td>
-      <td valign="top" align="right"><a href="http://vipe.technion.ac.il/~shlomif/lecture/Gimp/1/2.2-slides/">Gimp 2.2</a></td>
-    </tr>
-  </tbody>
+<div dir="ltr">
+<table border="1">
+#include '../lib/lectures_dest/2005.html'
 </table>
+</div>
 
 <h2>הרצאות נוספות</h2>
 <ul>

File wml/src/style.css

 {
     text-align: center;
 }
+.c
+{
+    text-align: center;
+}