- if content.present? %span{:class => 'badge ' + (type ? 'badge-' + type : '')} = content.to_s