diff options
author | Adrian Kummerlaender | 2014-10-18 22:36:35 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-18 22:36:35 +0200 |
commit | 14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5 (patch) | |
tree | 15a2a8d436d2ff1a48ac06fe718f54fd4c919e02 /source/99_result/stream.xsl | |
parent | acacfda54016cbd4437d1ccaa609a52e9c1739d0 (diff) | |
download | Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar.gz Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar.bz2 Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar.lz Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar.xz Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.tar.zst Overview-14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5.zip |
Added basic styling and expanded commit output
* added CSS style based on my personal blog
** modified master and stream templates accordingly
* added date-time, repository name and commit hash output
* removed single-repository log export as it is not the purpose of this application
Diffstat (limited to 'source/99_result/stream.xsl')
-rw-r--r-- | source/99_result/stream.xsl | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl index 4f1bfde..7cb695d 100644 --- a/source/99_result/stream.xsl +++ b/source/99_result/stream.xsl @@ -7,6 +7,7 @@ <xsl:include href="[utility/master.xsl]"/> <xsl:include href="[utility/xhtml.xsl]"/> +<xsl:include href="[utility/date-time.xsl]"/> <xsl:variable name="meta"> <datasource type="main" mode="iterate" source="04_meta/paginated_timeline.xml" target="page"/> @@ -20,7 +21,28 @@ <xsl:variable name="commit" select="$root/commits/entry[@handle = $repository]/commit[@hash = $hash]"/> - <xsl:apply-templates select="$commit/message/node()" mode="xhtml"/> + <div class="commit"> + <h2> + <xsl:text>» </xsl:text> + <a href=""> + <xsl:value-of select="$commit/message/h1"/> + </a> + </h2> + <p class="info"> + <xsl:call-template name="format-date"> + <xsl:with-param name="date" select="$commit/date"/> + <xsl:with-param name="format" select="'M x, Y'"/> + </xsl:call-template> + <xsl:text> at </xsl:text> + <xsl:value-of select="$commit/date/@time"/> + <xsl:text> | </xsl:text> + <xsl:value-of select="$repository"/> + <xsl:text> | </xsl:text> + <xsl:value-of select="$commit/@hash"/> + </p> + + <xsl:apply-templates select="$commit/message/*[name() != 'h1']" mode="xhtml"/> + </div> </xsl:template> <xsl:template match="page/entry"> @@ -29,13 +51,26 @@ <div id="pagination"> <xsl:if test="@index > 0"> <span> + <a class="pagination-previous" href="/0"> + <xsl:text>« first</xsl:text> + </a> + </span> + + <span> <a class="pagination-previous" href="/{@index - 1}"> <xsl:text>« newer</xsl:text> </a> </span> </xsl:if> + <xsl:if test="@index < @total - 1"> <span> + <a class="pagination-next" href="/{@total - 1}"> + <xsl:text>last »</xsl:text> + </a> + </span> + + <span> <a class="pagination-next" href="/{@index + 1}"> <xsl:text>older »</xsl:text> </a> |