Doing the ad removal in a bit nicer way.
authorMatt Lawrence <m3lawren@csclub.uwaterloo.ca>
Tue, 4 Mar 2008 01:53:08 +0000 (20:53 -0500)
committerMatt Lawrence <m3lawren@csclub.uwaterloo.ca>
Tue, 4 Mar 2008 01:53:08 +0000 (20:53 -0500)
xsl/media.xsl

index 12c0207..19c44fb 100644 (file)
@@ -34,7 +34,6 @@
   <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="ads">yes</xsl:with-param>
   </xsl:call-template>
   <xsl:call-template name="makemediaitem">
     <xsl:with-param name="suffix">-uw</xsl:with-param>
@@ -71,6 +70,9 @@
           <xsl:with-param name="href" select="concat(@title, $suffix)" />
         </xsl:call-template>
         <xsl:call-template name="donate-now" />
+        <xsl:if test="$ads">
+          <xsl:call-template name="inline-ads" />
+        </xsl:if>
         <xsl:if test="abstract">
           <h2>Abstract</h2>
           <div>