Ignore:
Timestamp:
30 May 2013, 13:26:37 (11 years ago)
Author:
uli
Message:

Avoid user-options dropdown if there would be no menu items to select.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ngren.theme/trunk/ngren/theme/ngren_theme/rules.xml

    r10240 r10253  
    2929
    3030  <!-- Top / Header -->
    31   <copy attributes="href" css:content='#portal-logo' css:theme="#logo-container a" />
     31  <copy attributes="href" css:content='#portal-logo'
     32        css:theme="#logo-container a" />
    3233
    3334  <!-- User options (upper right) -->
     
    4344            These go into user options dropdown
    4445  -->
    45   <copy css:theme="#user-options ul">
     46  <copy css:theme="#user-options ul"
     47        css:if-content="#portal-personaltools li:nth-child(3)">
    4648    <xsl:for-each css:select="#portal-personaltools li">
    4749      <xsl:if test="not(position() mod 2 = 0)">
     
    5254    </xsl:for-each>
    5355  </copy>
     56  <!--       if user options are empty (only login and separator):
     57             avoid dropdown -->
     58  <drop css:theme="#user-options ul"
     59        css:if-not-content="#portal-personaltools li:nth-child(3)">
     60  </drop>
     61  <drop css:theme="#user-options a:nth-child(2)"
     62        css:if-not-content="#portal-personaltools li:nth-child(3)">
     63  </drop>
     64  <!-- /user-options -->
    5465
    5566  <replace css:theme=".navbar-form" css:content="#portal-searchbox form"/>
Note: See TracChangeset for help on using the changeset viewer.