Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #422: Add "last modified" line on cover page #423

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions suse2013/common/l10n/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<l:gentext key="susecontact" text="Contact Us"/>
<l:gentext key="version.info" text="Applies to "/>
<l:gentext key="totopofpage" text="Top"/>
<l:gentext key="last.modified" text="Last modified"/>

<l:gentext key="version" text="Version"/>
<l:gentext key="Version" text="Version"/>
Expand Down
7 changes: 7 additions & 0 deletions suse2013/fo/param.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,11 @@ USA</xsl:param>
<!-- Trim away empty lines from the beginning and end of screens -->
<xsl:param name="trim.verbatim" select="1"/>


<!-- The date at when the document was modified
Leave empty if you do not want to add a line with:
"modified at $doc.modified"
-->
<xsl:param name="last.modified"/>

</xsl:stylesheet>
6 changes: 6 additions & 0 deletions suse2013/xhtml/param.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,10 @@ task before
og:description/meta description tags.-->
<xsl:param name="teaser.length" select="300"/>

<!-- The date at when the document was modified
Leave empty if you do not want to add a line with:
"modified at $doc.modified"
-->
<xsl:param name="last.modified"/>

</xsl:stylesheet>
12 changes: 12 additions & 0 deletions suse2013/xhtml/titlepage.templates.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,18 @@
<div class="date">
<xsl:call-template name="date.and.revision.inner"/>
</div>

<xsl:if test="$last.modified != ''">
<div class="date lastmodified">
<span class="imprint-label">
<xsl:call-template name="gentext">
<xsl:with-param name="key">last.modified</xsl:with-param>
</xsl:call-template>
<xsl:text>: </xsl:text>
</span>
<xsl:value-of select="normalize-space($last.modified)"/>
</div>
</xsl:if>
</xsl:template>

<xsl:template name="imprint.label">
Expand Down