Merge pull request #16401 from mehrdada/fix-sort-in-packages-xsl

Fix sort issue in package build page
pull/16415/head
Mehrdad Afshari 7 years ago committed by GitHub
commit 6c45188c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      tools/package_hosting/build-201807.xsl

@ -2,9 +2,9 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="//build">
<html>
<html>
<head>
<title>Artifacts for gRPC Build <xsl:value-of select="@id"/> </title>
<title>Artifacts for gRPC Build <xsl:value-of select="@id"/></title>
<link rel="stylesheet" type="text/css" href="/web-assets/style.css" />
<link rel="apple-touch-icon" href="/web-assets/favicons/apple-touch-icon.png" sizes="180x180" />
<link rel="icon" type="image/png" href="/web-assets/favicons/android-chrome-192x192.png" sizes="192x192" />
@ -14,7 +14,6 @@
<link rel="mask-icon" href="/web-assets/favicons/safari-pinned-tab.svg" color="#2DA6B0" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-TileImage" content="/web-assets/favicons/mstile-150x150.png" />
<meta name="og:title" content="gRPC Package Build"/>
<meta name="og:image" content="https://grpc.io/img/grpc_square_reverse_4x.png"/>
<meta name="og:description" content="gRPC Package Build"/>
@ -48,28 +47,28 @@
<br />
</div>
</body>
</html>
</html>
</xsl:template>
<xsl:template match="artifacts">
<h2> gRPC <code>protoc</code> Plugins </h2>
<table>
<xsl:apply-templates select="artifact[@type='protoc']">
<xsl:sort select="artifact/@name" />
<xsl:apply-templates select="artifact[@type='protoc']">
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
<h2> C# </h2>
<table>
<xsl:apply-templates select="artifact[@type='csharp']">
<xsl:sort select="artifact/@name" />
<xsl:apply-templates select="artifact[@type='csharp']">
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
<h2> PHP </h2>
<table>
<xsl:apply-templates select="artifact[@type='php']">
<xsl:sort select="artifact/@name" />
<xsl:apply-templates select="artifact[@type='php']">
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
@ -87,24 +86,23 @@ document.write("<p><code>" +
</script>
<table>
<xsl:apply-templates select="artifact[@type='python']">
<xsl:sort select="artifact/@name" />
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
<h2> Ruby </h2>
<table>
<xsl:apply-templates select="artifact[@type='ruby']">
<xsl:sort select="artifact/@name" />
<xsl:apply-templates select="artifact[@type='ruby']">
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
</xsl:template>
<xsl:template match="artifact">
<tr>
<td class="name"> <a href="{@path}"><xsl:value-of select="@name" /></a> </td>
<td class="hash"> <xsl:value-of select="@sha256"/> </td>
<td class="name"><a href="{@path}"><xsl:value-of select="@name" /></a></td>
<td class="hash"><xsl:value-of select="@sha256"/></td>
</tr>
</xsl:template>

Loading…
Cancel
Save