mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Export unused cylinders to divelogs.de
When user has selected to show unused cylinders in equipment tab, respect this setting when exporting to divelogs.de. Fixes #3277 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
235ee4803f
commit
63795a84f4
2 changed files with 7 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:include href="commonTemplates.xsl"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
<xsl:param name="allcylinders" select="allcylinders"/>
|
||||
<xsl:output method="xml" encoding="UTF-8" indent="yes"
|
||||
cdata-section-elements="LOCATION SITE WEATHER WATERVIZIBILITY PARTNER BOATNAME CYLINDERDESCRIPTION LOGNOTES"
|
||||
/>
|
||||
|
|
@ -170,7 +171,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas] or substring-before(@start, ' ') - 5 > substring-before(@end, ' ')">
|
||||
<xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas] or substring-before(@start, ' ') - 5 > substring-before(@end, ' ') or $allcylinders > 0">
|
||||
<xsl:variable name="cur_cyl">
|
||||
<xsl:value-of select="position()"/>
|
||||
</xsl:variable>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue