summaryrefslogtreecommitdiff
path: root/gentoobrowse/package.xslt
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-03 20:15:31 +0000
committerrandomdan <randomdan@localhost>2011-02-03 20:15:31 +0000
commit2adc1957fa29da43958fbae7418417f8682bb37e (patch)
treeb66cf75e15bd6188845861a336d640e4b6d57d1d /gentoobrowse/package.xslt
parentUse xsl rows for getting bug data (diff)
downloadgentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.tar.bz2
gentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.tar.xz
gentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.zip
Only include the track/untrack JS when a user is logged in
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r--gentoobrowse/package.xslt2
1 files changed, 2 insertions, 0 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt
index 4f85498..2d7107f 100644
--- a/gentoobrowse/package.xslt
+++ b/gentoobrowse/package.xslt
@@ -21,6 +21,7 @@
}
document.getElementById(name).className = 'tabvisible';
}
+ <xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) != 0">
function track(pid)
{
xmlhttp = new XMLHttpRequest();
@@ -43,6 +44,7 @@
document.getElementById("dotrack").style.display = "inline";
}
}
+ </xsl:if>
</script>
</xsl:template>
<xsl:template name="content">