Changeset 13513 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 1 Dec 2015, 09:53:33 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py
r13198 r13513 240 240 return usertitle != 'Unauthenticated User' 241 241 242 def isMaintenanceMode(self): 243 """Return True if portal is in maintenance mode. 244 """ 245 if grok.getSite()['configuration'].maintmode_enabled_by: 246 return True 247 return False 248 242 249 def getUserTitle(self): 243 250 """Return principal title of current user. -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/staffsitelayout.pt
r12901 r13513 63 63 <tal:languages tal:content="structure langs" /> | 64 64 </span> 65 66 <!-- Diazo element--> 67 <span tal:condition="layout/isMaintenanceMode"> 68 <div class="maintenance-warning" i18n:translate=""> 69 M A I N T E N A N C E 70 M O D E O N 71 </div> 72 </span> 73 <!-- /Diazo element--> 65 74 66 75 <!-- Diazo element-->
Note: See TracChangeset for help on using the changeset viewer.