mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix sponsor images alignment based on count
This commit is contained in:
parent
c06b2a31ab
commit
2f66500351
1 changed files with 3 additions and 3 deletions
|
|
@ -12,12 +12,12 @@
|
|||
- if !@conference.sponsorship_levels.blank?
|
||||
- @conference.sponsorship_levels.each do |l|
|
||||
- if !l.sponsors.blank?
|
||||
%div.row
|
||||
%div.row.text-center
|
||||
%h4 #{l.title}
|
||||
- l.sponsors.each_with_index do |r,index|
|
||||
%div.col-md-4
|
||||
%div.text-center{ class: (l.sponsors.count.to_i <= 2 ? "col-md-#{12/l.sponsors.count.to_i}" : "col-md-4") }
|
||||
- if !r.logo.blank?
|
||||
= link_to image_tag(r.logo(:large), class: 'img-responsive', alt: "#{r.name} Logo", title: "#{r.description}"), "http://#{r.website_url}"
|
||||
= link_to image_tag(r.logo(:large), alt: "#{r.name} Logo", title: "#{r.description}"), "http://#{r.website_url}"
|
||||
- unless index == 0
|
||||
- if index%2 == 0
|
||||
%div.clearfix.visible-md.visible-lg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue