Changeset 31386


Ignore:
Timestamp:
2017-02-04T02:06:18+13:00 (4 years ago)
Author:
Georgiy Litvinov
Message:

Moved li inside templates to get rid of empty li elements in html

File:
1 edited

Legend:

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

    r31240 r31386  
    277277  <xsl:template name="home-help-preferences">
    278278    <ul id="bannerLinks">
    279       <li><xsl:call-template name="RSSLink"/></li>
    280       <li><xsl:call-template name="PrefsLink"/></li>
    281       <li><xsl:call-template name="HelpLink"/></li>
    282       <li id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
    283       <li><xsl:call-template name="DebugLink"/></li>
     279      <xsl:call-template name="RSSLink"/>
     280      <xsl:call-template name="PrefsLink"/>
     281      <xsl:call-template name="HelpLink"/>
     282      <xsl:call-template name="LoginoutLink"/>
     283      <xsl:call-template name="DebugLink"/>
    284284      <xsl:call-template name="buttonStyling"/>
    285285    </ul>
     
    291291     If it's present in any format statement, display the RSS link in the bannerlinks section. -->
    292292    <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
     293     <li>
    293294      <gsf:link type="rss"><gsf:icon file="rssicon.png"/></gsf:link>
     295     </li>
    294296    </xsl:if>
    295297  </xsl:template>
    296298 
    297299  <xsl:template name="PrefsLink">
     300    <li>
    298301    <a href="{$library_name}/collection/{$collNameChecked}/page/pref">
    299302      <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
    300303      <span id="preferencesButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></span>
    301304    </a>
     305    </li>
    302306  </xsl:template>
    303307 
    304308  <xsl:template name="HelpLink">
     309   <li>
    305310    <a href="{$library_name}/collection/{$collNameChecked}/page/help">
    306311      <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
    307312      <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
    308313    </a>
     314   </li>
    309315  </xsl:template>
    310316 
     
    430436 
    431437  <xsl:template name="LoginoutLink">
     438   <li id="userMenuButton">
    432439    <!-- login/logout -->
    433440    <xsl:choose>
     
    448455      </xsl:otherwise>
    449456    </xsl:choose>
     457   </li>
    450458  </xsl:template>
    451459 
     
    453461    <!-- debuginfo (doesn't use class="ui-state-error" since the text is not legible due to inherited text-colour) -->
    454462    <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
     463     <li>
    455464      <a href="{$library_name}/collection/{$collNameChecked}/page/debug">
    456465    <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_tip')"/></xsl:attribute>
    457466    <span id="debugButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_b')"/></span>
    458467      </a>
     468     </li>
    459469    </xsl:if>
    460470  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.