Changeset 10981


Ignore:
Timestamp:
24 Jan 2014, 16:21:37 (11 years ago)
Author:
Henrik Bettermann
Message:

Use Bootstrap 3 css classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py

    r10974 r10981  
    151151        return self.url(site, name)
    152152
    153     def flash(self, message, type='alert-message warning'):
     153    def flash(self, message, type='success'):
    154154        """Send a short message to the user.
    155155        """
     156        cssClass = 'alert alert-%s' % type
    156157        source = queryUtility(IMessageSource, name='session')
    157158        if source is None:
    158159            return None
    159         source.send(message, type)
     160        source.send(message, cssClass)
    160161        return True
    161162
Note: See TracChangeset for help on using the changeset viewer.