_email_with_badge.html.haml 235 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 - css_classes = %w(label label-verification-status) - css_classes << (verified ? 'verified': 'unverified') - text = verified ? 'Verified' : 'Unverified' .email-badge .email-badge-email= email %div{ class: css_classes } = text