Maintain size of sponsor logos
Places logo on a white background if image is smaller than the given
constrains.
Resizes the logo if image is larger than constrains.
Validation of presence of logo was moved cause file field wasn't getting
marked as required field ('*' thingy) in form.
`- if logo presence` was removed cause logo is mandatory field.
This commit is contained in:
parent
647a40be63
commit
af08d843a8
3 changed files with 26 additions and 7 deletions
|
|
@ -14,9 +14,8 @@
|
|||
.row
|
||||
- slice.each do |sponsor|
|
||||
.col-md-4.col-sm-4.col-top
|
||||
- if sponsor.logo.present?
|
||||
= link_to(sponsor.website_url, class: 'thumbnail') do
|
||||
= image_tag sponsor.logo, class: "img-responsive img-sponsor img-sponsor-#{sponsorship_level.position}", title: "#{sponsor.description}"
|
||||
= link_to(sponsor.website_url, class: 'thumbnail') do
|
||||
= image_tag get_logo(sponsor), class: "img-responsive img-sponsor img-sponsor-#{sponsorship_level.position}", title: "#{sponsor.description}"
|
||||
-if @conference.contact and !@conference.contact.sponsor_email.blank?
|
||||
.row
|
||||
.col-md-12
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue