No need for mirror.cs anymore

news-update
David Bartley 15 years ago
parent a9e13f8d1d
commit fea8037245
  1. 5
      buttons/Makefile
  2. 3
      xsl/html.xsl
  3. 9
      xsl/media.xsl

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

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

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

Loading…
Cancel
Save