No need for mirror.cs anymore

This commit is contained in:
David Bartley 2008-06-12 16:02:09 -04:00
parent a9e13f8d1d
commit fea8037245
3 changed files with 6 additions and 11 deletions

View File

@ -1,5 +1,4 @@
FILES = about.png events.png gitweb.png home.png library.png mailman.png \ FILES = about.png events.png gitweb.png home.png mailman.png media.png \
media.png office.png services.png stats.png webmail.png wiki.png \ office.png services.png stats.png webmail.png wiki.png gallery.png
gallery.png
RELDIR = buttons/ RELDIR = buttons/
include ../common.mk include ../common.mk

View File

@ -31,8 +31,7 @@
</xsl:variable> </xsl:variable>
<!-- mirror variables --> <!-- mirror variables -->
<xsl:variable name="g_mirror_csc">http://csclub.uwaterloo.ca/files/</xsl:variable> <xsl:variable name="g_mirror">http://mirror.csclub.uwaterloo.ca/csclub/</xsl:variable>
<xsl:variable name="g_mirror_cs">http://mirror.cs.uwaterloo.ca/csclub/</xsl:variable>
<!-- include additional style sheets --> <!-- include additional style sheets -->
<xsl:include href="functions.xsl" /> <xsl:include href="functions.xsl" />

View File

@ -32,7 +32,6 @@
<xsl:template match="mediaitem"> <xsl:template match="mediaitem">
<xsl:call-template name="makemediaitem"> <xsl:call-template name="makemediaitem">
<xsl:with-param name="mirror" select="$g_mirror_csc" />
<xsl:with-param name="bittorrent">yes</xsl:with-param> <xsl:with-param name="bittorrent">yes</xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="makemediaitem"> <xsl:call-template name="makemediaitem">
@ -43,7 +42,6 @@
against your ResNet quota. against your ResNet quota.
</p> </p>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="mirror" select="$g_mirror_cs" />
</xsl:call-template> </xsl:call-template>
<li><a href= "{@title}"><xsl:value-of select="@title" /></a></li> <li><a href= "{@title}"><xsl:value-of select="@title" /></a></li>
</xsl:template> </xsl:template>
@ -51,7 +49,6 @@
<xsl:template name="makemediaitem"> <xsl:template name="makemediaitem">
<xsl:param name="suffix" /> <xsl:param name="suffix" />
<xsl:param name="infotext" /> <xsl:param name="infotext" />
<xsl:param name="mirror" />
<xsl:param name="bittorrent" /> <xsl:param name="bittorrent" />
<xsl:param name="ads" /> <xsl:param name="ads" />
<xsl:variable name="realurl" select="concat('http://csclub.uwaterloo.ca/media/', csc:encode-for-uri(@title))" /> <xsl:variable name="realurl" select="concat('http://csclub.uwaterloo.ca/media/', csc:encode-for-uri(@title))" />
@ -83,7 +80,7 @@
<h2>View</h2> <h2>View</h2>
<div> <div>
<xsl:apply-templates select="flvfile"> <xsl:apply-templates select="flvfile">
<xsl:with-param name="mirror" select="$mirror" /> <xsl:with-param name="mirror" select="$g_mirror" />
</xsl:apply-templates> </xsl:apply-templates>
</div> </div>
</xsl:if> </xsl:if>
@ -96,14 +93,14 @@
BitTorrent: BitTorrent:
<xsl:apply-templates select="mediafile"> <xsl:apply-templates select="mediafile">
<xsl:with-param name="ext">.torrent</xsl:with-param> <xsl:with-param name="ext">.torrent</xsl:with-param>
<xsl:with-param name="mirror" select="$mirror" /> <xsl:with-param name="mirror" select="$g_mirror" />
</xsl:apply-templates> </xsl:apply-templates>
</p> </p>
</xsl:if> </xsl:if>
<p class="mediafile"> <p class="mediafile">
HTTP (web browser): HTTP (web browser):
<xsl:apply-templates select="mediafile"> <xsl:apply-templates select="mediafile">
<xsl:with-param name="mirror" select="$mirror" /> <xsl:with-param name="mirror" select="$g_mirror" />
</xsl:apply-templates> </xsl:apply-templates>
</p> </p>
</div> </div>