aboutsummaryrefslogtreecommitdiff
path: root/source/02_augment
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-18 22:36:35 +0200
committerAdrian Kummerlaender2014-10-18 22:36:35 +0200
commit14ee0d2e8bba56e24a28e9a824731fddc9b2b7a5 (patch)
tree15a2a8d436d2ff1a48ac06fe718f54fd4c919e02 /source/02_augment
parentacacfda54016cbd4437d1ccaa609a52e9c1739d0 (diff)
downloadOverview-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/02_augment')
-rw-r--r--source/02_augment/formatted_commits.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/02_augment/formatted_commits.xsl b/source/02_augment/formatted_commits.xsl
index 555e0d8..fed8c94 100644
--- a/source/02_augment/formatted_commits.xsl
+++ b/source/02_augment/formatted_commits.xsl
@@ -23,6 +23,20 @@
)/self::command/node()"/>
</xsl:template>
+<xsl:template match="date" mode="commit">
+ <xsl:copy>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring(text(), 12, 5)"/>
+ </xsl:attribute>
+
+ <xsl:apply-templates select="@*|node()" mode="commit"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="date/text()" mode="commit">
+ <xsl:value-of select="substring(., 0, 11)"/>
+</xsl:template>
+
<xsl:template match="message/text()" mode="commit">
<xsl:call-template name="formatter">
<xsl:with-param name="format">markdown</xsl:with-param>