Ignore:
Timestamp:
8 Jul 2021, 06:02:29 (3 years ago)
Author:
Henrik Bettermann
Message:

Don't show real name if public name is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r16529 r16532  
    987987
    988988    def label(self):
    989         return _(u'Send message to ${a}', mapping = {'a':self.context.title})
     989        name = getattr(self.context, 'public_name', None)
     990        if not name:
     991            name = self.context.title
     992        return _(u'Send message to ${a}', mapping = {'a':name})
    990993
    991994    @action(_('Send message now'), style='primary')
Note: See TracChangeset for help on using the changeset viewer.