Changeset 61ed1b in indico


Ignore:
Timestamp:
04/23/12 14:39:56 (14 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 36509dd327b5670bb394f5ec070c14653b4c9c19
Children:
d1b306
Parents:
c60e4da
git-author:
Claude Bossy <claude.bossy@…> (02/22/12 11:05:42)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (04/23/12 14:39:56)
Message:

[IMP] added the layout menu in conference display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/wcomponents.py

    rc60e4da r61ed1b  
    473473 
    474474        # Default values to avoid NameError while executing the template 
     475        styleMgr = info.HelperMaKaCInfo.getMaKaCInfoInstance().getStyleManager() 
     476        styles = styleMgr.getExistingStylesForEventType("conference") 
     477 
    475478        vars["viewoptions"] = [] 
     479        viewoptions = [] 
     480        if len(styles) != 0: 
     481            styles.sort(key=styleMgr.getStyleName) 
     482            for styleId in styles: 
     483                viewoptions.append({"id": styleId, "name": styleMgr.getStyleName(styleId) }) 
     484        vars["viewoptions"] = viewoptions 
    476485        vars["SelectedStyle"] = "" 
    477486        vars["pdfURL"] = "" 
    478         vars["displayURL"] = "" 
     487        vars["displayURL"] = str(urlHandlers.UHConferenceOtherViews.getURL()) 
    479488 
    480489        # Setting the buttons that will be displayed in the header menu 
     
    484493        vars["showExportToPDF"] = False 
    485494        vars["showDLMaterial"] = True 
    486         vars["showLayout"] = False 
     495        vars["showLayout"] = True 
    487496 
    488497        vars["usingModifKey"]=False 
Note: See TracChangeset for help on using the changeset viewer.