Changeset bbd65a in indico


Ignore:
Timestamp:
12/16/09 10:17:36 (4 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
dea818, f3d0f4
Parents:
385d02
Message:

[FIXED] Showing material and sort styles

  • Displaying material at meeting level for Staff Association style
  • Sorting out the list of styles in the menu More > Layout.
Location:
indico/MaKaC/webinterface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/stylesheets/sa.xsl

    r9033fd rbbd65a  
    8383 
    8484<font size="+1" face="Times"> 
    85 <xsl:value-of select="./title" disable-output-escaping="yes"/><br/> 
    86 </font> 
    87  
     85<xsl:value-of select="./title" disable-output-escaping="yes"/> 
     86</font> 
     87<xsl:if test="count(child::material) != 0"> 
     88    <font face="Times" size="+1"><xsl:for-each select="material"> 
     89        <a href="{./displayURL}">&#160;&#160;<xsl:value-of select="./title" disable-output-escaping="yes"/></a> 
     90    </xsl:for-each></font> 
     91</xsl:if> 
     92<br/> 
    8893<font size="+1" face="Times"> 
    8994<xsl:if test="count(child::location) != 0"> 
  • indico/MaKaC/webinterface/wcomponents.py

    r0e0c28 rbbd65a  
    590590        viewoptions = [] 
    591591        if len(stylesheets) != 0: 
    592             stylesheets.sort() 
     592            stylesheets.sort(key=styleMgr.getStylesheetName) 
    593593            for stylesheet in stylesheets: 
    594594                viewoptions.append({"id": stylesheet, "name": styleMgr.getStylesheetName(stylesheet) }) 
     
    688688        viewoptions = [] 
    689689        if len(stylesheets) != 0: 
    690             stylesheets.sort() 
     690            stylesheets.sort(key=styleMgr.getStylesheetName) 
    691691            for stylesheet in stylesheets: 
    692692                viewoptions.append({"id": stylesheet, "name": styleMgr.getStylesheetName(stylesheet) }) 
Note: See TracChangeset for help on using the changeset viewer.