Changeset 13807 for main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Timestamp:
- 6 Apr 2016, 10:36:01 (9 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py
r13066 r13807 247 247 return usertitle != 'Unauthenticated User' 248 248 249 def isMaintenanceMode(self): 250 """Return True if portal is in maintenance mode. 251 """ 252 if grok.getSite()['configuration'].maintmode_enabled_by: 253 return True 254 return False 255 249 256 def getUserTitle(self): 250 257 """Return principal title of current user. -
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/templates/staffsitelayout.pt
r12706 r13807 57 57 <tal:languages tal:content="structure langs" /> | 58 58 </span> 59 60 <!-- Diazo element--> 61 <span tal:condition="layout/isMaintenanceMode"> 62 <div class="maintenance-warning" i18n:translate=""> 63 M A I N T E N A N C E 64 M O D E O N 65 </div> 66 </span> 67 <!-- /Diazo element--> 59 68 60 69 <!-- Diazo element-->
Note: See TracChangeset for help on using the changeset viewer.