[yelp-xsl] mal2html-page: Don't output empty About footer
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-page: Don't output empty About footer
- Date: Thu, 26 Jan 2012 15:07:19 +0000 (UTC)
commit 316402bc61f97ff6aa4eb15c8f5700cc9ce8de94
Author: Shaun McCance <shaunm gnome org>
Date: Thu Jan 26 10:06:54 2012 -0500
mal2html-page: Don't output empty About footer
xslt/mallard/html/mal2html-page.xsl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 4a05b82..5e9de01 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -56,6 +56,7 @@ the #{page} element. Information is extracted from the #{info} element of ${node
-->
<xsl:template name="mal2html.page.about">
<xsl:param name="node" select="."/>
+ <xsl:if test="$node/mal:info/mal:credit or $node/mal:info/mal:license">
<div class="sect about">
<div class="hgroup">
<h2>
@@ -205,6 +206,7 @@ the #{page} element. Information is extracted from the #{info} element of ${node
</div>
</div>
</div>
+ </xsl:if>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]