[Debconf6-data-commit] r139 - in website/www: . templates
Neil McGovern
neilm at costa.debian.org
Thu Dec 22 11:31:06 UTC 2005
Author: neilm
Date: 2005-12-22 11:31:05 +0000 (Thu, 22 Dec 2005)
New Revision: 139
Added:
website/www/templates/
website/www/templates/base.epl
website/www/templates/blank.html
website/www/templates/bottom.html
website/www/templates/column_center_top.html
website/www/templates/column_left.html
website/www/templates/column_right.html
website/www/templates/contact.html
website/www/templates/footer.html
website/www/templates/header-debday.html
website/www/templates/header.epl
website/www/templates/header.html
website/www/templates/menubar.html
website/www/templates/newsticker.html
website/www/templates/sponsors.html
website/www/templates/top.html
website/www/templates/topright-dday.html
website/www/templates/topright.html
Log:
Checkin templates
Added: website/www/templates/base.epl
===================================================================
--- website/www/templates/base.epl 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/base.epl 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,19 @@
+[-
+use strict;
+use Config::General;
+use Date::Manip;
+my $req = shift;
+
+die("DC6CFG doesn't exist as an environment variable!\nExiting.\n") if (! defined($ENV{DC6CFG}));
+die("DC6CFG exists, but I can't find the file!\nExiting.\n") if (! -e $ENV{DC6CFG});
+die("DC6CFG exists, but isn't readable!\nExiting.\n") if (! -r $ENV{DC6CFG});
+
+my $conf = new Config::General($ENV{DC6CFG});
+my %config = $conf->getall;
+
+# Setup te title
+$req->{title} .= $config{Site}{title};
+$req->{title} .= " - ".$config{Site}{subtitle} if defined($config{Site}{subtitle});
+
+Execute ('*');
+-]
Added: website/www/templates/blank.html
===================================================================
--- website/www/templates/blank.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/blank.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1 @@
+<!-- REPLACE TEXT HERE -->
Added: website/www/templates/bottom.html
===================================================================
--- website/www/templates/bottom.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/bottom.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,16 @@
+
+ </div>
+ <div id='icons'>
+ <a href='#' onclick='javascript:window.print()'><img src='http://media.debconf.org/dc6/images/print.png' alt='Print' title='Print this page'/></a>
+
+ <a href='#top'><img src='http://media.debconf.org/dc6/images/top.png' alt='Top' title='Back to top of page'/></a>
+ </div>
+ </div>
+ <div id='bottomrightpanel'>
+ <div id='sponsors'>
+ <h3>Sponsors</h3>
+ [- Execute ('sponsors.html'); -]
+ </div>
+ </div>
+</div>
+<!-- end bottom panel -->
Added: website/www/templates/column_center_top.html
===================================================================
--- website/www/templates/column_center_top.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/column_center_top.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1 @@
+foo
Added: website/www/templates/column_left.html
===================================================================
--- website/www/templates/column_left.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/column_left.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,18 @@
+<!-- Start Left Column -->
+
+<div id="leftcolumn" class="panel">
+<div id="navlist">
+ Navigation list
+</div>
+
+<!-- start valid check-->
+<div id="check">
+<a href="http://validator.w3.org/check/referer">XHTML</a>, <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
+</div>
+<!--end valid check-->
+
+
+</div>
+<!-- End left column -->
+<!-- Start center column -->
+<div id="centercolumn">
Added: website/www/templates/column_right.html
===================================================================
--- website/www/templates/column_right.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/column_right.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,2 @@
+</div>
+<!-- End center column -->
Added: website/www/templates/contact.html
===================================================================
--- website/www/templates/contact.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/contact.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,3 @@
+<h4>DRAFT</h4>
+<h1>Contacting the team</h1>
+The main email address for contacting the organisers is debconf6-team at lists.debconf.org
Added: website/www/templates/footer.html
===================================================================
--- website/www/templates/footer.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/footer.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,19 @@
+ </div>
+ <div id='icons'>
+ <a href='#' onclick='javascript:window.print()'><img src='http://media.debconf.org/dc6/images/print.png' alt='Print' title='Print this page'/></a>
+
+ <a href='#top'><img src='http://media.debconf.org/dc6/images/top.png' alt='Top' title='Back to top of page'/></a>
+ </div>
+ </div>
+ <div id='bottomrightpanel'>
+ <div id='sponsors'>
+ <h3>Sponsors</h3>
+ [- Execute ('sponsors.html'); -]
+ </div>
+ </div>
+</div>
+<!-- end bottom panel -->
+<div id='footer'></div>
+</div>
+</body>
+</html>
Added: website/www/templates/header-debday.html
===================================================================
--- website/www/templates/header-debday.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/header-debday.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>DebConf 6 - Hot and Spicy</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+ <link rel="stylesheet" type="text/css" href="http://media.debconf.org/dc6/css/dday.css"/>
+ <link rel="stylesheet alternative" type="text/css" href="http://media.debconf.org/dc6/css/print.css" media="print"/>
+</head>
+<!-- start include/header.html -->
+<body>
+ <div id='background'>
+<!-- end include/header.html -->
+<!-- start top panel -->
+<div id='toppanel'>
+<a name='top' />
+ <div id='topleftpanel'>
+ <div id='timeto'>
+ [+
+ do {
+ $datetill = Date::Manip::DateCalc("today","09:00 14th May, 2006",\$err,1);
+ $datetill =~ s/\+//;
+ @array = split(/:/,$datetill);
+ my $output = "See you in ";
+ my @names = ('year','month','week','day','hour','minute','second');
+ my $i = 0;
+ my @array;
+ foreach $element(split(/:/,$datetill)) {
+ if ($element > 0 && $i < 6 ) {
+ $temp = $element." ".$names[$i];
+ $temp .= "s" if ($element > 1);
+ @array = (@array, $temp);
+ }
+ $i++
+ }
+ $elelength = @array;
+ $i = 0;
+ foreach $element(@array) {
+ $output .= $element;
+ $output .= ", " if ($i < ($elelength - 2));
+ $output .= " and " if ($i == ($elelength - 2) );
+ $i++;
+ }
+ if ($output eq "See you in ") {
+ $output = "Are you hot and spicy?";
+ } else {
+ $output .= "!";
+ }
+ }
+ +]
+ </div>
+ </div>
+ <div id='topcenterpanel'>
+ <div id='masthead'>
+ </div>
+ <div id="floatlogo">
+ <img src='http://media.debconf.org/dc6/images/logo_transparent.png' alt='DebConf6 Logo' title='Hot and Spicy!' />
+ </div>
+ [- Execute ("menubar.html"); -]
+ </div>
+ <div id='toprightpanel'>
+ <div id='toprightcontent'>
+ [- Execute ("topright-dday.html"); -]
+ </div>
+ </div>
+</div>
+<!-- end top panel -->
+<!-- begin bottom panel -->
+<div id='bottompanel'>
+ <div id='bottomleftpanel'>
+ <div id='newsticker'>
+ [- Execute ('newsticker.html'); -]
+ </div>
+ </div>
+ <div id='bottomcenterpanel'>
+ <div id='content'>
Added: website/www/templates/header.epl
===================================================================
--- website/www/templates/header.epl 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/header.epl 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,10 @@
+[- $req = shift; -]
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>[+ $req->{title} +]</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+ <link rel="stylesheet" type="text/css" href="http://media.debconf.org/dc6/css/main.css"/>
+ <link rel="stylesheet alternative" type="text/css" href="http://media.debconf.org/dc6/css/print.css" media="print"/>
+</head>
+<!-- End of HTML-Header -->
Added: website/www/templates/header.html
===================================================================
--- website/www/templates/header.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/header.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>DebConf 6 - Hot and Spicy</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+ <link rel="stylesheet" type="text/css" href="http://media.debconf.org/dc6/css/main.css"/>
+ <link rel="stylesheet alternative" type="text/css" href="http://media.debconf.org/dc6/css/print.css" media="print"/>
+</head>
+<!-- start include/header.html -->
+<body>
+ <div id='background'>
+<!-- end include/header.html -->
+<!-- start top panel -->
+<div id='toppanel'>
+<a name='top' />
+ <div id='topleftpanel'>
+ <div id='timeto'>
+ [+
+ do {
+ $datetill = Date::Manip::DateCalc("today","09:00 14th May, 2006",\$err,1);
+ $datetill =~ s/\+//;
+ @array = split(/:/,$datetill);
+ my $output = "See you in ";
+ my @names = ('year','month','week','day','hour','minute','second');
+ my $i = 0;
+ my @array;
+ foreach $element(split(/:/,$datetill)) {
+ if ($element > 0 && $i < 6 ) {
+ $temp = $element." ".$names[$i];
+ $temp .= "s" if ($element > 1);
+ @array = (@array, $temp);
+ }
+ $i++
+ }
+ $elelength = @array;
+ $i = 0;
+ foreach $element(@array) {
+ $output .= $element;
+ $output .= ", " if ($i < ($elelength - 2));
+ $output .= " and " if ($i == ($elelength - 2) );
+ $i++;
+ }
+ if ($output eq "See you in ") {
+ $output = "Are you hot and spicy?";
+ } else {
+ $output .= "!";
+ }
+ }
+ +]
+ </div>
+ </div>
+ <div id='topcenterpanel'>
+ <div id='masthead'>
+ </div>
+ <div id="floatlogo">
+ <img src='http://media.debconf.org/dc6/images/logo_transparent.png' alt='DebConf6 Logo' title='Hot and Spicy!' />
+ </div>
+ [- Execute ("menubar.html"); -]
+ </div>
+ <div id='toprightpanel'>
+ <div id='toprightcontent'>
+ [- Execute ("topright.html"); -]
+ </div>
+ </div>
+</div>
+<!-- end top panel -->
+<!-- begin bottom panel -->
+<div id='bottompanel'>
+ <div id='bottomleftpanel'>
+ <div id='newsticker'>
+ [- Execute ('newsticker.html'); -]
+ </div>
+ </div>
+ <div id='bottomcenterpanel'>
+ <div id='content'>
Added: website/www/templates/menubar.html
===================================================================
--- website/www/templates/menubar.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/menubar.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,10 @@
+ <div class='menubar'>
+ <ul id='topmenu'>
+ <li><a href='/about/' title='General information about Debconf'>About DebConf</a></li>
+ <li><a href="/news/" title='Latest news about Debconf'>News</a></li>
+ <li><a href='/venue/' title='Information about the venue'>About Oaxtepec</a></li>
+ </ul>
+ <ul id='bottommenu'>
+
+ </ul>
+ </div>
Added: website/www/templates/newsticker.html
===================================================================
--- website/www/templates/newsticker.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/newsticker.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,13 @@
+<h1>Latest News</h1>
+[+
+do {
+$req = shift;
+$output .= "";
+$pwd = $req->component->cwd;
+ at names = (sort { $b cmp $a } glob($pwd."/../news/items/*") ) ;
+$names[0] =~ s/-/ /g;
+$names[0] =~ /([0-9]{2})_(.*).html/;
+$output .= "$2<br /><a href='/news/read.html?id=$1'>>>> read more</a>";
+$foo = $output;
+}
++]
Added: website/www/templates/sponsors.html
===================================================================
--- website/www/templates/sponsors.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/sponsors.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,15 @@
+[+
+do {
+$req = shift;
+$output .= "";
+$pwd = $req->component->cwd;
+foreach $name (sort glob($pwd."/../sponsors/logos/*") ) {
+$name =~ /[0-9]{2}_(.*).[a-z]{3}/;
+$url = $1;
+$url =~ s/\+/\//g;
+$name =~ s/$pwd//;
+$output .= "<a href='http://$url'><img src='$name' alt='Sponsor Logo'/></a><br /> <br />";
+}
+$foo = $output;
+}
++]
Added: website/www/templates/top.html
===================================================================
--- website/www/templates/top.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/top.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,61 @@
+<!-- start top panel -->
+<div id='toppanel'>
+<a name='top' />
+ <div id='topleftpanel'>
+ <div id='timeto'>
+ [+
+ $datetill = Date::Manip::DateCalc("today","09:00 14th May, 2006",\$err,1);
+ $datetill =~ s/\+//;
+ @array = split(/:/,$datetill);
+ my $output = "See you in ";
+ my @names = ('year','month','week','day','hour','minute','second');
+ my $i = 0;
+ my @array;
+ foreach $element(split(/:/,$datetill)) {
+ if ($element > 0 && $i < 6 ) {
+ $temp = $element." ".$names[$i];
+ $temp .= "s" if ($element > 1);
+ @array = (@array, $temp);
+ }
+ $i++
+ }
+ $elelength = @array;
+ $i = 0;
+ foreach $element(@array) {
+ $output .= $element;
+ $output .= ", " if ($i < ($elelength - 2));
+ $output .= " and " if ($i == ($elelength - 2) );
+ $i++;
+ }
+ if ($output eq "See you in ") {
+ $output = "Are you hot and spicy?";
+ } else {
+ $output .= "!";
+ }
+ +]
+ </div>
+ </div>
+ <div id='topcenterpanel'>
+ <div id='masthead'>
+ </div>
+ <div id="floatlogo">
+ <img src='http://media.debconf.org/dc6/images/logo_transparent.png' alt='DebConf6 Logo' title='Hot and Spicy!' />
+ </div>
+ [- Execute ("menubar.html"); -]
+ </div>
+ <div id='toprightpanel'>
+ <div id='toprightcontent'>
+ [- Execute ("topright.html"); -]
+ </div>
+ </div>
+</div>
+<!-- end top panel -->
+<!-- begin bottom panel -->
+<div id='bottompanel'>
+ <div id='bottomleftpanel'>
+ <div id='newsticker'>
+ [- Execute ('newsticker.html'); -]
+ </div>
+ </div>
+ <div id='bottomcenterpanel'>
+ <div id='content'>
Added: website/www/templates/topright-dday.html
===================================================================
--- website/www/templates/topright-dday.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/topright-dday.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,7 @@
+<span><a href='/'>Home</a><br /></span>
+
+<a href="/debday-comas/general/proposals">Proposals (preliminar)</a><br />
+<a href="/debday-comas/attendees/account">Your account</a><br />
+<a href="/debday-comas/attendees/account/logout">Log out</a><br />
+<br />
+<a href='/contact.html'>Contact</a><br />
Added: website/www/templates/topright.html
===================================================================
--- website/www/templates/topright.html 2005-12-22 00:44:44 UTC (rev 138)
+++ website/www/templates/topright.html 2005-12-22 11:31:05 UTC (rev 139)
@@ -0,0 +1,6 @@
+<span><a href='/'>Home</a><br /></span>
+<a href="/comas/general/proposals">Proposals (preliminar)</a><br />
+<a href="/comas/attendees/account">Your account</a><br />
+<a href="/comas/attendees/account/logout">Log out</a><br />
+<br />
+<a href='/contact.html'>Contact</a><br />
More information about the Debconf6-data-commit
mailing list