Changeset e19e71 in indico


Ignore:
Timestamp:
06/15/10 16:18:15 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
96485d
Parents:
1787ab
git-author:
Leszek Syroka <leszek.marek.syroka@…> (05/26/10 13:40:34)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (06/15/10 16:18:15)
Message:

[FIX] Editing locked event

  • menus to edit event aren't displayed while event is closed
  • fix#392
Location:
indico/MaKaC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/common/output.py

    r4413c7 re19e71  
    232232        if not out: 
    233233            out = self._XMLGen 
    234  
    235234        if vars and vars.has_key("frame") and vars["frame"] == "no": 
    236235            modificons = 0 
     
    318317        if evaluation.isVisible() and evaluation.inEvaluationPeriod() and evaluation.getNbOfQuestions()>0 : 
    319318            out.writeTag("evaluationLink",urlHandlers.UHConfEvaluationDisplay.getURL(conf)) 
     319 
     320        out.writeTag("closed", str(conf.isClosed())) 
    320321 
    321322#        if len(conf.getBookingsList()): 
  • indico/MaKaC/webinterface/stylesheets/include/common.xsl

    r9d6eb3 re19e71  
    2626        <xsl:value-of select="./rn" disable-output-escaping="yes"/> 
    2727</xsl:template> 
     28 
     29<xsl:variable name="closed" select="/iconf/closed"/> 
    2830 
    2931<xsl:template name="displayModifIcons"> 
     
    4345    <xsl:param name="alignMenuRight">false</xsl:param> 
    4446    <xsl:variable name="menuName">menu<xsl:value-of select="$confId"/><xsl:value-of select="translate($sessCode, '-','')"/><xsl:value-of select="$contId"/><xsl:value-of select="$subContId"/></xsl:variable> 
    45  
    46     <xsl:if test="$item/modifyLink != '' or $item/materialLink != '' or $item/minutesLink != ''"> 
     47    <xsl:if test="$closed = 'False' and ($item/modifyLink != '' or $item/materialLink != '' or $item/minutesLink != '')"> 
    4748        <!-- script that creates a variable for a menu  --> 
    4849 
Note: See TracChangeset for help on using the changeset viewer.