Module: TestimonialsHelper

Defined in:
app/helpers/testimonials_helper.rb

Instance Method Summary collapse

Instance Method Details



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


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


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