diff options
author | Adrian Kummerlaender | 2019-10-27 23:25:39 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2019-10-27 23:25:39 +0100 |
commit | 6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b (patch) | |
tree | e31973acb492229f2e75a85242b80765a119046d /source/99_result | |
parent | 89619385a27b6687a2786970dafdb5d9361f4e48 (diff) | |
download | Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar.gz Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar.bz2 Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar.lz Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar.xz Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.tar.zst Overview-6b2b5329374e7db0c4ab9b89bbadbb0c3b57bb3b.zip |
Match recent commit timeline changes
Diffstat (limited to 'source/99_result')
-rw-r--r-- | source/99_result/overview.xsl | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl index 9abad23..a2cf9f9 100644 --- a/source/99_result/overview.xsl +++ b/source/99_result/overview.xsl @@ -26,7 +26,36 @@ <xsl:variable name="root" select="/datasource"/> -<xsl:template match="timeline/entry"> +<xsl:template match="articles/entry"> + <h3> + <span class="arrow"> + <xsl:text>» </xsl:text> + </span> + <a href="{link}"> + <xsl:value-of select="title"/> + </a> + </h3> + + <span class="info"> + <xsl:call-template name="format-date"> + <xsl:with-param name="date" select="date"/> + <xsl:with-param name="format" select="'M x, Y'"/> + </xsl:call-template> + <xsl:text> | </xsl:text> + <xsl:value-of select="author"/> + </span> + + <p> + <xsl:apply-templates select="content/node()" mode="xhtml"/> + <xsl:text> </xsl:text> + + <a class="more" href="{link}"> + <xsl:text>↪</xsl:text> + </a> + </p> +</xsl:template> + +<xsl:template match="timeline/entry[@type='commit']"> <h3> <span class="arrow"> <xsl:text>» </xsl:text> @@ -58,12 +87,12 @@ <xsl:apply-templates select="content/node()" mode="xhtml"/> </xsl:template> -<xsl:template match="articles/entry"> +<xsl:template match="timeline/entry[@type='unstructured']"> <h3> <span class="arrow"> <xsl:text>» </xsl:text> </span> - <a href="{link}"> + <a href="{title/@href}"> <xsl:value-of select="title"/> </a> </h3> @@ -73,18 +102,13 @@ <xsl:with-param name="date" select="date"/> <xsl:with-param name="format" select="'M x, Y'"/> </xsl:call-template> + <xsl:text> at </xsl:text> + <xsl:value-of select="date/@time"/> <xsl:text> | </xsl:text> - <xsl:value-of select="author"/> + <xsl:value-of select="$root/meta/author"/> </span> - <p> - <xsl:apply-templates select="content/node()" mode="xhtml"/> - <xsl:text> </xsl:text> - - <a class="more" href="{link}"> - <xsl:text>↪</xsl:text> - </a> - </p> + <xsl:apply-templates select="content/node()" mode="xhtml"/> </xsl:template> <xsl:template match="datasource"> |