Module: ODDB::Html::View::Google

Included in:
Drugs::CompareList, Drugs::Packages, Drugs::ProductsList
Defined in:
lib/oddb/html/view/google.rb

Instance Method Summary collapse

Instance Method Details

#google(model) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/oddb/html/view/google.rb', line 8

def google(model)
  @google_id ||= 0
  @google_id += 1
  link = HtmlGrid::Link.new(:google, model, @session, self)
  link.css_id = "google_%i" % @google_id
  name = model.name.send(@session.language)
  link.href = "http://www.google.de/search?q=%s" % name
  link.dojo_title = @lookandfeel.lookup(:google, name)
  link.css_class = 'square google'
  link.label = false
  link
end