* Position fetching is implemented by csc:positions * Exec page is now called Positions (positions.html) * exec.html -> positions.html symlink existsfoo
parent
dec967e63c
commit
910001d750
@ -1,6 +1,11 @@ |
||||
FILES = index.html exec.html members.html constitution.html donations.html \
|
||||
constitution-change-20020920.html constitution-change-20040205.html
|
||||
positions.html constitution-change-20020920.html \
|
||||
constitution-change-20040205.html
|
||||
RELDIR = about/
|
||||
include ../common.mk |
||||
|
||||
$(OUTDIR)members.html: force |
||||
$(OUTDIR)positions.html: force |
||||
|
||||
$(OUTDIR)exec.html: |
||||
ln -s positions.html $@
|
||||
|
@ -1,66 +0,0 @@ |
||||
<?xml version='1.0'?> |
||||
|
||||
<!DOCTYPE cscpage SYSTEM "../csc.dtd"> |
||||
|
||||
<cscpage title="The CSC Executive"> |
||||
<header /> |
||||
<section title="The Executive"> |
||||
<execlist> |
||||
<exec position="President" |
||||
name="Holden Karau" |
||||
sex="male" |
||||
userid="president" /> |
||||
|
||||
<exec position="Vice President" |
||||
name="Alex McCausland" |
||||
sex="male" |
||||
userid="vice-president" /> |
||||
|
||||
<exec position="Treasurer" |
||||
name="Dominik Chlobowski" |
||||
sex="male" |
||||
userid="treasurer" /> |
||||
|
||||
<exec position="Secretary" |
||||
name="Sean Cumming" |
||||
sex="male" |
||||
userid="secretary" /> |
||||
|
||||
<exec position="System Administrator" |
||||
type="appointed" |
||||
name="David Tenty" |
||||
sex="male" |
||||
userid="sysadmin" /> |
||||
|
||||
<exec position="Librarian" |
||||
type="appointed" |
||||
name="Various people" |
||||
sex="male" |
||||
userid="librarian" /> |
||||
|
||||
<exec position="Imapd (Individual Making Arrangements for Pop Delivery)" |
||||
type="appointed" |
||||
name="Nobody" |
||||
sex="male" |
||||
userid="imapd" /> |
||||
|
||||
<!-- Co-op position --> |
||||
<exec position="Web Master" |
||||
type="appointed" |
||||
name="David Bartley and Juti Noppornpitak" |
||||
sex="male" |
||||
userid="www" /> |
||||
</execlist> |
||||
</section> |
||||
<section title="Elections"> |
||||
<p> |
||||
Each term the CSC holds elections to determine the executive |
||||
council. To find out when and where the next elections will be |
||||
held, check the <a href="../index.html">homepage</a> and the <a |
||||
href="http://csclub.uwaterloo.ca/newsgroup/thread.php?group=uw.csc">uw.csc newsgroup</a>. For details on the |
||||
election rules, see the <a |
||||
href="constitution.html">constitution</a>. |
||||
</p> |
||||
</section> |
||||
<footer/> |
||||
</cscpage> |
@ -0,0 +1,24 @@ |
||||
<?xml version='1.0'?> |
||||
|
||||
<!DOCTYPE cscpage SYSTEM "../csc.dtd"> |
||||
|
||||
<cscpage title="The CSC Executive"> |
||||
<header /> |
||||
<section title="The Executive"> |
||||
<positions exec="yes" /> |
||||
</section> |
||||
<section title="Other Positions"> |
||||
<positions exec="no" /> |
||||
</section> |
||||
<section title="Elections"> |
||||
<p> |
||||
Each term the CSC holds elections to determine the executive council. To |
||||
find out when and where the next elections will be held, check the |
||||
<a href="../index.html">homepage</a> and the |
||||
<a href="http://csclub.uwaterloo.ca/newsgroup/thread.php?group=uw.csc"> |
||||
uw.csc</a> newsgroup. For details on the election rules, see the |
||||
<a href="constitution.html">constitution</a>. |
||||
</p> |
||||
</section> |
||||
<footer /> |
||||
</cscpage> |
@ -1,37 +0,0 @@ |
||||
<?xml version='1.0'?> |
||||
|
||||
<xsl:stylesheet version="1.0" |
||||
xmlns="http://www.w3.org/1999/xhtml" |
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"> |
||||
|
||||
<xsl:template match="execlist"> |
||||
<h3>Elected positions</h3> |
||||
<ul> |
||||
<xsl:apply-templates select="exec[@type='elected']" /> |
||||
</ul> |
||||
<h3>Appointed positions</h3> |
||||
<ul> |
||||
<xsl:apply-templates select="exec[@type='appointed']" /> |
||||
</ul> |
||||
</xsl:template> |
||||
|
||||
<xsl:template match="exec"> |
||||
<li> |
||||
<xsl:value-of select="@name" /> is this term's <b> |
||||
<xsl:value-of select="@position" /></b>. You can <a |
||||
href="mailto:{@userid}@csclub.uwaterloo.ca">e-mail the |
||||
<xsl:value-of select="@position" /></a> |
||||
<xsl:if test="not(@href='')"> |
||||
or <a href="{@href}">visit |
||||
<xsl:choose> |
||||
<xsl:when test="@sex='male'"> his </xsl:when> |
||||
<xsl:when test="@sex='female'"> her </xsl:when> |
||||
<xsl:otherwise> his or her </xsl:otherwise> |
||||
</xsl:choose> |
||||
homepage</a> |
||||
</xsl:if>. |
||||
</li> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
@ -0,0 +1,24 @@ |
||||
<?xml version='1.0'?> |
||||
|
||||
<xsl:stylesheet version="1.0" |
||||
xmlns="http://www.w3.org/1999/xhtml" |
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"> |
||||
|
||||
<xsl:template match="positions"> |
||||
<xsl:variable name="exec" select="@exec" /> |
||||
<xsl:for-each select="csc:position-list('')/position[@exec=$exec]"> |
||||
<xsl:sort select="@order" order="ascending" /> |
||||
<p> |
||||
<div class="position"> |
||||
<a href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a> |
||||
</div> |
||||
<xsl:if test="not(holder)">Vacant</xsl:if> |
||||
<xsl:for-each select="holder"> |
||||
<xsl:value-of select="@name" /><br /> |
||||
</xsl:for-each> |
||||
</p> |
||||
</xsl:for-each> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
Loading…
Reference in new issue