Module: TestimonialsHelper
- Defined in:
- app/helpers/testimonials_helper.rb
Instance Method Summary collapse
- #class_by_remote_link(url) ⇒ Object
- #image_by_link(url) ⇒ Object
- #title_by_remote_link(url) ⇒ Object
Instance Method Details
#class_by_remote_link(url) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/helpers/testimonials_helper.rb', line 11 def class_by_remote_link(url) case url when /sitejabber.com/ 'jabber' when /facebook.com/ 'fb' when /bbb.org/ 'bbb' end end |
#image_by_link(url) ⇒ Object
4 5 6 7 8 9 |
# File 'app/helpers/testimonials_helper.rb', line 4 def image_by_link(url) case url when /sitejabber.com/ 'jabber.png' end end |
#title_by_remote_link(url) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'app/helpers/testimonials_helper.rb', line 22 def title_by_remote_link(url) case url when /sitejabber.com/ 'SiteJabber' when /facebook.com/ 'Facebook' when /bbb.org/ 'Better Busines Bureau' end end |