Changeset 31399


Ignore:
Timestamp:
2017-02-09T22:03:23+13:00 (6 years ago)
Author:
Georgiy Litvinov
Message:

More accurate fix for self-closing li

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r31398 r31399  
    277277  <xsl:template name="home-help-preferences">
    278278    <ul id="bannerLinks">
    279       <li><xsl:call-template name="RSSLink"/></li>
     279      <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
     280        <li><xsl:call-template name="RSSLink"/></li>
     281      </xsl:if>
    280282      <li><xsl:call-template name="PrefsLink"/></li>
    281283      <li><xsl:call-template name="HelpLink"/></li>
    282284      <li id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
    283       <li><xsl:call-template name="DebugLink"/></li>
     285      <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
     286        <li><xsl:call-template name="DebugLink"/></li>
     287      </xsl:if>
    284288      <xsl:call-template name="buttonStyling"/>
    285289    </ul>
Note: See TracChangeset for help on using the changeset viewer.