Ignore:
Timestamp:
1 Dec 2015, 09:53:33 (9 years ago)
Author:
Henrik Bettermann
Message:

Add maintenance mode warning box which the enabler sees if logged in.

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  
    240240        return usertitle != 'Unauthenticated User'
    241241
     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
    242249    def getUserTitle(self):
    243250        """Return principal title of current user.
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/staffsitelayout.pt

    r12901 r13513  
    6363      <tal:languages tal:content="structure langs" /> |
    6464    </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 &nbsp;&nbsp;&nbsp;
     70          M O D E &nbsp;&nbsp;&nbsp; O N
     71      </div>
     72    </span>
     73    <!-- /Diazo element-->
    6574
    6675    <!-- Diazo element-->
Note: See TracChangeset for help on using the changeset viewer.