Merge pull request #967 from sonalkr132/sponsers
Splash page sponsers section style improvement
This commit is contained in:
commit
9e07212cb5
9 changed files with 99 additions and 21 deletions
12
app/helpers/sponsors_helper.rb
Normal file
12
app/helpers/sponsors_helper.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module SponsorsHelper
|
||||
# returns the url to be used for logo on basis of sponsorship level position
|
||||
def get_logo(sponsor)
|
||||
if sponsor.sponsorship_level.position == 1
|
||||
sponsor.logo.url(:first)
|
||||
elsif sponsor.sponsorship_level.position == 2
|
||||
sponsor.logo.url(:second)
|
||||
else
|
||||
sponsor.logo.url(:others)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue