Ignore:
Timestamp:
6 Apr 2016, 10:36:01 (9 years ago)
Author:
Henrik Bettermann
Message:

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

See r13513.

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  
    247247        return usertitle != 'Unauthenticated User'
    248248
     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
    249256    def getUserTitle(self):
    250257        """Return principal title of current user.
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/templates/staffsitelayout.pt

    r12706 r13807  
    5757      <tal:languages tal:content="structure langs" /> |
    5858    </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 &nbsp;&nbsp;&nbsp;
     64          M O D E &nbsp;&nbsp;&nbsp; O N
     65      </div>
     66    </span>
     67    <!-- /Diazo element-->
    5968
    6069    <!-- Diazo element-->
Note: See TracChangeset for help on using the changeset viewer.