]> matita.cs.unibo.it Git - helm.git/commitdiff
- main page now generated automatically
authorLuca Padovani <luca.padovani@unito.it>
Thu, 14 Feb 2002 21:55:02 +0000 (21:55 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Thu, 14 Feb 2002 21:55:02 +0000 (21:55 +0000)
- latest news included in main page
- improved layout
- changed colours
- fix for IE (dismissed blockquote everywhere)

19 files changed:
helm/mowgli/home/html/Makefile
helm/mowgli/home/style/mowgli.css
helm/mowgli/home/templates/home.html [deleted file]
helm/mowgli/home/templates/home.html.bot [new file with mode: 0644]
helm/mowgli/home/templates/home.html.top [new file with mode: 0644]
helm/mowgli/home/templates/index.html
helm/mowgli/home/templates/menu.html
helm/mowgli/home/xml/news.xml
helm/mowgli/home/xsl/common.xsl
helm/mowgli/home/xsl/consortium.xsl
helm/mowgli/home/xsl/deliverable.xsl
helm/mowgli/home/xsl/latest-news.xsl [new file with mode: 0644]
helm/mowgli/home/xsl/news.xsl
helm/mowgli/home/xsl/person.xsl
helm/mowgli/home/xsl/project.xsl
helm/mowgli/home/xsl/publication.xsl
helm/mowgli/home/xsl/site.xsl
helm/mowgli/home/xsl/work-package.xsl
helm/mowgli/home/xsl/work-packages_index.xsl

index 4c48dbbd51d6a527cb2cbb63f74f031a76877b40..30c581c4d9f875c32572e4b2c57398ee08ab5030 100644 (file)
@@ -1,5 +1,6 @@
 
-DESTDIR = /projects/mowgli/public_html
+#DESTDIR = /projects/mowgli/public_html
+DESTDIR = /tmp/mowgli
 
 TEMPLATESROOT = ../templates
 XMLROOT = ../xml
@@ -105,8 +106,12 @@ DOCUMENTS = \
 
 all: $(DOCUMENTS)
 
-home.html: $(TEMPLATESROOT)/home.html
-       cp $< $@
+home.html: $(TEMPLATESROOT)/home.html.top $(TEMPLATESROOT)/home.html.bot \
+          $(XMLROOT)/news.xml \
+          $(XSLROOT)/latest-news.xsl
+       cat $(TEMPLATESROOT)/home.html.top >$@
+       xsltproc $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml >>$@
+       cat $(TEMPLATESROOT)/home.html.bot >>$@
 
 index.html: $(TEMPLATESROOT)/index.html
        cp $< $@
@@ -175,5 +180,6 @@ uninstall:
        rm -rf $(DESTDIR)/*
 
 $(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
+$(XSLROOT)/latest-news.xsl : $(XSLROOT)/news.xsl
 $(DOCUMENTS) : $(XSLROOT)/common.xsl
 
index 1dbc930207e3a09bba986d30db686b1bb3602e2e..4a32870fa2022d2f8842b74bdb0dc2ca8b14728e 100644 (file)
@@ -1,10 +1,10 @@
 
 table.menuborder {
-  background-color: #663300;
+  background-color: #003377;
 }
 
 td.menutitle {
-  background-color: #cc9966;
+  background-color: #ffeeaa;
   color:            black;
   font-family:      sans-serif;
   font-weight:      bold;
@@ -12,7 +12,7 @@ td.menutitle {
 }
 
 td.menuentries {
-  background-color: #ffcc99;
+  background-color: #ccddff;
   color:            black;
   font-family:      sans-serif;
   font-size:        smaller;
@@ -58,12 +58,12 @@ body.content {
 }
 
 a {
-  color:            #990033;
+  color:            #003377;
 }
 
 a:hover {
-  background-color: #cc9966;
-  color:            black;
+  background-color: #ffeeaa;
+  color:            #003377;
 }
 
 a:visited {
diff --git a/helm/mowgli/home/templates/home.html b/helm/mowgli/home/templates/home.html
deleted file mode 100644 (file)
index d7e3fba..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-  <head>
-    <title>MoWGLI Home Page</title>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
-  </head>
-
-  <body class="content">
-    <blockquote>
-      <table width="100%" border="0" cellspacing="0" cellpadding="0">
-        <tr>
-         <td align="left" valign="top">
-            <img alt="MoWGLI Logo" src="../images/mowgli_combo.gif"/>
-         </td>
-         <td align="right" valign="top">
-           <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo" src="../images/istdrop.gif"/></a>
-         </td>
-       </tr>
-      </table>
-      
-      <br />
-      <h3>A few lines</h3>
-      with a brief description of the project
-      and possibly links to the member sites.
-      A link to a more detailed section should be provided
-      here, so that newcomers don't have to look inside the menu to read more.
-      
-      <br /><br />
-      <hr width="100%"/>
-      
-      <h3>Latest News</h3>
-
-      <dl class="news">
-        <dt class="news">January 19, 2002</dt>
-       <dd class="news">first web pages created (lp).</dd>
-
-       <dt class="news">???, 2001</dt>
-       <dd class="news">The MoWGLI project was born
-       </dd>
-      </dl>
-      
-      <hr width="100%"/>
-      
-      <div class="small">
-      <table border="0" cellspacing="0" cellpadding="0" width="100%">
-        <tr>
-         <td align="left" valign="top">
-            This pages are hosted by the
-            <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
-            <a href="http://www.unibo.it">University of Bologna</a>.
-         </td>
-         <td align="right" valign="top">
-            <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="../images/istbutton_small.gif"/></a>
-         </td>
-       </tr>
-      </table>
-      </div>
-    </blockquote>
-  </body>
-
-</html>
diff --git a/helm/mowgli/home/templates/home.html.bot b/helm/mowgli/home/templates/home.html.bot
new file mode 100644 (file)
index 0000000..1955b48
--- /dev/null
@@ -0,0 +1,22 @@
+      </dl>
+
+      <hr width="100%"/>
+      
+      <table border="0" cellspacing="0" cellpadding="0" width="100%">
+        <tr>
+         <td align="left" valign="top">
+      <div class="small">
+            This pages are hosted by the
+            <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
+            <a href="http://www.unibo.it">University of Bologna</a>.
+      </div>
+         </td>
+         <td align="right" valign="top">
+            <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="../images/istbutton_small.gif"/></a>
+         </td>
+       </tr>
+      </table>
+      <br />
+  </body>
+
+</html>
diff --git a/helm/mowgli/home/templates/home.html.top b/helm/mowgli/home/templates/home.html.top
new file mode 100644 (file)
index 0000000..c56cec2
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+  <head>
+    <title>MoWGLI Home Page</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
+  </head>
+
+  <body class="content">
+      <br />
+      <table width="100%" border="0" cellspacing="0" cellpadding="0">
+        <tr>
+         <td align="left" valign="top">
+            <img alt="MoWGLI Logo" src="../images/mowgli_combo.gif"/>
+         </td>
+         <td align="right" valign="top">
+           <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo" src="../images/istdrop.gif"/></a>
+         </td>
+       </tr>
+      </table>
+      
+      <br />
+      <h3>A few lines</h3>
+      with a brief description of the project
+      and possibly links to the member sites.
+      A link to a more detailed section should be provided
+      here, so that newcomers don't have to look inside the menu to read more.
+      
+      <br /><br />
+      <hr width="100%"/>
+      
+      <h3>Latest News</h3>
+
+      <dl>
index 30a32119cf09819a35cc59537930a68e2a66620e..7a2929c033aabaf5a38b252334c6c5de63dc4306 100644 (file)
@@ -11,7 +11,7 @@
 
   <frameset cols="200,*" border="0">
     <frame name="menu" src="menu.html">
-    <frame name="content" src="home.html">
+    <frame name="content" src="home.html" marginwidth="30">
   </frameset>
 
 </html>
index f40a5721f76ee898294cfacc9b7ac3745ef8b9ae..d6ec60e0199472bbf8bc9e0db9978914f574c77e 100644 (file)
 
   <tr>
     <td class="menuentries">
-      <div class="small">
-        <table width="100%" border="0">
-        <tr><td>Contact:</td></tr>
-       <tr><td><a href="mailto:asperti@cs.unibo.it">asperti@cs.unibo.it</a></td></tr>
-       <tr><td>Webmaster:</td></tr>
-       <tr><td><a href="mailto:mowgli-webmaster@cs.unibo.it">mowgli-webmaster@cs.unibo.it</a></td></tr>
-        <tr><td>Last Update:</td></tr>
-       <tr><td><b>@DATE@</b></td></tr>
-        </table>
+      <table width="100%" border="0">
+        <tr>
+         <td><div class="small">Contact:</td>
+       </tr>
+        <tr>
+         <td><div class="small"><a href="mailto:asperti@cs.unibo.it">asperti@cs.unibo.it</a></td>
+       </tr>
+        <tr>
+         <td><div class="small">Webmaster:</div></td>
+       </tr>
+        <tr>
+         <td><div class="small"><a href="mailto:mowgli-webmaster@cs.unibo.it">mowgli-webmaster@cs.unibo.it</a></div></td>
+       </tr>
+        <tr>
+         <td><div class="small">Last Update:</div></td>
+       </tr>
+        <tr>
+         <td><div class="small"><b>@DATE@</b></div></td>
+       </tr>
+      </table>
     </td>
   </tr>
   
index eeecc24441db523d9edc1603113af623170496ba..b0aa2310fb6a111f31ed603d7f8b1d535e6f7b4b 100644 (file)
 
 <news>
 
+  <event>
+    <date>February 14, 2002</date>
+    <header>Valentine's Day</header>
+    <description>
+      New fancy colours, improved layout, especially for I.E. (bleah), main page
+      generated automatically.
+    </description>
+    <who file="bologna/padovani"/>
+  </event>
+  
   <event>
     <date>February 12, 2002</date>
     <description>
index 847be68b86f4c3f3cd1e1114b6adc07f42d6ab69..b124be0bb578ffc7d692ebbb0bd8e9f6ebc391ab 100644 (file)
@@ -5,6 +5,7 @@
 
 <xsl:template name="head">
   <xsl:param name="path_to_top" select="'.'"/>
+  <br />
   <table border="0" cellspacing="0" cellpadding="0" width="100%">
     <tr>
       <td align="left" valign="bottom">
@@ -41,6 +42,7 @@
       </td>
     </tr>
   </table>
+  <br />
 </xsl:template>
 
 <xsl:template name="person-name">
index f4a210c5eddd62f4a13cb41cfe5f5685980c3f2d..f42274f9b6a9d242b2b40c7214b3fa088b25016b 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index 47ba47e9336c31edbae4286eeb8b2660d3ffbe7a..2721a5ff04009620a359e6706e16f46a24685819 100644 (file)
@@ -19,7 +19,6 @@
    <link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
@@ -27,7 +26,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
diff --git a/helm/mowgli/home/xsl/latest-news.xsl b/helm/mowgli/home/xsl/latest-news.xsl
new file mode 100644 (file)
index 0000000..dbbd9f0
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+<xsl:import href="news.xsl"/>
+
+<xsl:output method="html"/>
+
+<xsl:template match="/">
+  <xsl:apply-templates select="news/event[position() &lt; 4]"/>
+</xsl:template>
+
+</xsl:stylesheet>
+
index 87bd02da90ebb6d22ecd0f80fe0a652329c9d1a0..7ce85ac1afea39349f1344bb740dc2f014e096db 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
@@ -26,7 +25,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
 <xsl:template match="event">
  <dt>
   <b><xsl:value-of select="date"/></b>
-  <xsl:if test="head">
+  <xsl:if test="header">
    <xsl:value-of select="' -- '"/>
    <em>
-    <xsl:value-of select="head"/>
+    <xsl:value-of select="header"/>
    </em>
   </xsl:if>
  </dt>
index 75019f247fbc617cdbafb9261ad1cf1f2535350a..bc2736357f4b0f46dba3b8dcfaab455833b1ff60 100644 (file)
@@ -24,7 +24,6 @@
    <link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
@@ -32,7 +31,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index df1d3e91348c74d08c877834eccc8f2d5110c86d..5588c763d8e451f3a75984592423c86cc88df781 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'.'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index 50fbd0416ee1b1ad606ee43a8274cd83763b05a2..b00df28c67be4570285242c56dfc9fdbbbf6a75f 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'../..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index fa8b319a8513d6e46aaf954870767d4cea75c872..d488bacdcea2ac41080d2992608c4caf5b41efc0 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index 7046ddfdddf72c97758c50633dcd170b4c45c227..b013b880812c2c3812d6fe06ffe20a894f73001f 100644 (file)
@@ -20,7 +20,6 @@
    <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
@@ -28,7 +27,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
index 2c7ed8ee47ccdcf74330668abd3e884430740e2e..629009daeee376518591885288ad9822af6ce07e 100644 (file)
@@ -15,7 +15,6 @@
    <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
     <xsl:call-template name="head">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
@@ -23,7 +22,6 @@
     <xsl:call-template name="foot">
      <xsl:with-param name="path_to_top" select="'..'"/>
     </xsl:call-template>
-   </blockquote>
   </body>
  </html>
 </xsl:template>