def profile_email_notifications(self, user):
        """
        display a green/red icon if user accepts or not email notifications.
        if for some reason, the user don't have a UserProfile, it returns a (?) icon.
        """
        if user.get_profile():
            email_notifications = user.get_profile().email_notifications
            icon_url = static('admin/img/icon-%s.gif' % {True: 'yes', False: 'no', None: 'unknown'}[email_notifications])
            return '<img src="{0}" alt="{1}" />'.format(icon_url, email_notifications)
        else:
            icon_url = static('admin/img/icon-icon-unknown.gif')
            return icon_url % '<img src="{0}" alt="NO PROFILE" />no profile!'
dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/journalmanager/admin.py/UserAdmin.profile_email_notifications/swapped operands of `%`