Browse Source

Switch to new project overview page (part 2).

svn path=/trunk/; revision=8702
pull/8/head
Reinhard Müller 14 years ago
parent
commit
4f97403560
4 changed files with 95 additions and 0 deletions
  1. +5
    -0
      projects/.htaccess
  2. +43
    -0
      projects/projects.en.xhtml
  3. +6
    -0
      projects/projects.sources
  4. +41
    -0
      projects/projects.xsl

+ 5
- 0
projects/.htaccess View File

@ -0,0 +1,5 @@
RewriteEngine On
RewriteRule ^community(.*) /projects/projects$1 [redirect=permanent]
RewriteRule ^legal(.*) /projects/projects$1 [redirect=permanent]
RewriteRule ^other(.*) /projects/projects$1 [redirect=permanent]
RewriteRule ^technical(.*) /projects/projects$1 [redirect=permanent]

+ 43
- 0
projects/projects.en.xhtml View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<html>
<head>
<title>Free Software Foundation Europe - Projects</title>
</head>
<body>
<center>
<h1>Projects</h1>
</center>
<h2>Active Projects</h2>
<dynamic-content status="active"/>
<h2>Inactive And Deferred Projects</h2>
<p>
These projects have been started, but activity on these projects is
currently low because of a lack of resources. See the respective project
pages for more information on how to help with these projects.
</p>
<dynamic-content status="dormant"/>
<h2>Finished And Discontinued Projects</h2>
<p>
These projects were finished, and we keep the information here for
archiving purposes.
</p>
<dynamic-content status="finished"/>
</body>
<timestamp>$Date$ $Author$</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 6
- 0
projects/projects.sources View File

@ -0,0 +1,6 @@
projects/*/project:global
de/projects/*/project:de
es/projects/*/project:es
fr/projects/*/project:fr
it/projects/*/project:it
se/projects/*/project:se

+ 41
- 0
projects/projects.xsl View File

@ -0,0 +1,41 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
<!-- Fill dynamic content -->
<xsl:template match="dynamic-content">
<xsl:variable name="status"><xsl:value-of select="@status"/></xsl:variable>
<xsl:for-each select="/html/set/project [@status = $status]">
<xsl:sort select="@date" order="descending"/>
<!-- Title -->
<xsl:element name="h3">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:element>
<!-- Description -->
<xsl:element name="p">
<xsl:apply-templates select="description/node()"/>
</xsl:element>
</xsl:for-each>
</xsl:template>
<!-- Do not copy <set> to output at all -->
<xsl:template match="set"/>
<!-- For all other nodes, copy verbatim -->
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save