-if @news.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 notícias .col-3.col-sm-4 .line - @news.each do |card| %div{class: card_columns(@news.size) } = render '/layouts/site/card_generic', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'noticias' -if @projects.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 projetos .col-3.col-sm-4 .line - @projects.each do |card| .col-sm-3 = render '/layouts/site/card_generic', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'projetos' -if @congresses.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 congressos .col-3.col-sm-4 .line - @congresses.each do |card| .col-sm-3 = render '/layouts/site/card_generic', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'congressos' -if @helpdesks.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 help desk .col-3.col-sm-4 .line - @helpdesks.each do |card| .col-sm-3 = render '/layouts/site/card_generic', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'help-desk' -if @publications.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 publicações .col-3.col-sm-4 .line - @publications.each do |card| .col-sm-6 = render '/layouts/site/publication/card_publication', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'publicacoes' -if @classroomcourses.present? || @onlinecourses.present? .row %div{:style => "width: 100%;"} .row.align-items-start .col-12.text-center.mt-5.mb-3 .row.align-items-center .col-3.col-sm-4 .line .col-5.col-sm-4 %h1 cursos .col-3.col-sm-4 .line - @classroomcourses.each do |card| .col-sm-3 = render '/layouts/site/course/card_classroomcourse', content: card - @onlinecourses.each do |card| .col-sm-3 = render '/layouts/site/course/card_onlinecourse', content: card .col-12.text-right.my-4 = link_to 'veja todos', 'cursos'