fix "Course Completeness doesn't show percent scores in grid"

This commit is contained in:
Chris Danford
2004-08-31 04:27:56 +00:00
parent b2415f5c37
commit 1e326dcdd6
@@ -672,12 +672,6 @@
<table> <table>
<tr> <tr>
@@ -695,14 +689,14 @@
<td><xsl:apply-templates select="@Dir | @Path"/></td> <td><xsl:apply-templates select="@Dir | @Path"/></td>
<xsl:for-each select="$Catalog/Types/*[name()=$DifficultyName]"> <xsl:for-each select="$Catalog/Types/*[name()=$DifficultyName]">
<xsl:variable name="Difficulty" select="." /> <xsl:variable name="Difficulty" select="." />
<xsl:variable name="StatsSong" select="$Stats/*/*[@Dir=$Dir or @Path=$Path]/Steps[(@Difficulty=$Difficulty or @CourseDifficulty=$Difficulty) and @StepsType=$StepsType]" /> <xsl:variable name="StatsSongOrCourse" select="$Stats/*/*[@Dir=$Dir or @Path=$Path]/*[(@Difficulty=$Difficulty or @CourseDifficulty=$Difficulty) and @StepsType=$StepsType]" />
<xsl:variable name="CatalogSong" select="$Catalog/*/*[@Dir=$Dir or @Path=$Path]/*[(@Difficulty=$Difficulty or @CourseDifficulty=$Difficulty) and @StepsType=$StepsType]" /> <xsl:variable name="CatalogSongOrCourse" select="$Catalog/*/*[@Dir=$Dir or @Path=$Path]/*[(@Difficulty=$Difficulty or @CourseDifficulty=$Difficulty) and @StepsType=$StepsType]" />
<td> <td>
<xsl:if test="count($CatalogSong) &gt; 0"> <xsl:if test="count($CatalogSongOrCourse) &gt; 0">
<xsl:apply-templates select="$CatalogSong/Meter"/> <xsl:apply-templates select="$CatalogSongOrCourse/Meter"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<span class="dyndata"> <span class="dyndata">
<xsl:apply-templates select="$StatsSong/HighScoreList/HighScore[1]/PercentDP" /> <xsl:apply-templates select="$StatsSongOrCourse/HighScoreList/HighScore[1]/PercentDP" />
</span> </span>
</xsl:if> </xsl:if>
</td> </td>