openSUSE/osem

View on GitHub
app/views/conferences/_booths.haml

Summary

Maintainability
Test Coverage
.row
  .col-md-12
    %h3.text-center "#{(t'booth').pluralize.capitalize }"
.row.row-centered
  - booths.each do |booth|
    .col-md-2.col-sm-2.col-centered.col-top.booth
      %a.thumbnail{ href: '#',
        data: { toggle: 'modal', target: "#modal-booth-#{booth.id}" } }
        - if booth.picture?
          = image_tag get_logo(booth),
            class: ['img-responsive', 'img-rounded'],
            title: booth.title
        - else
          .caption
            %h3.text-center= booth.title