#cardCursos %a.cardGeneric.h-100{ :href => '/' + t("activerecord.models.#{content.type.underscore}.slug") + '/' + content.slug } .card.card-noimage.bgTransparent.h-100.cssColorClass - if content.image.present? = image_tag content.image_url(:thumb),:alt=>content.title,:title=>content.title,:class=>"card-img-top mx-auto mx-md-0 img-fluid" .card-body .line-top %p= t("activerecord.models.#{content.type.underscore}.one") - if content.online_course_info.registration_phase == 'open' %h3.badge.badge-info.mb-3 Inscrição Aberta - if content.online_course_info.registration_phase == 'pre-register' %h3.badge.badge-info.mb-3 Pré-Inscrição - if content.online_course_info.registration_phase == 'closed' %h3.badge.badge-danger.mb-3 Inscrição Encerrada %h2.card-title.mb-4= content.title .dl.dt-inline %p.card-text.mb-2 - if content.respond_to?(:duration) && content.duration.present? %span.card-text-title Duração do curso: = content.duration %p.card-text.mb-2 - if content.respond_to?(:number_of_students) && content.number_of_students.present? %span.card-text-title Número de alunos: = content.number_of_students %div .triangle .line-bottom