Class: ODDB::Html::View::HelpLinks

Inherits:
Links
  • Object
show all
Defined in:
lib/oddb/html/view/navigation.rb

Instance Method Summary collapse

Methods inherited from Links

#init, #links

Instance Method Details

#contact(link) ⇒ Object



45
46
47
# File 'lib/oddb/html/view/navigation.rb', line 45

def contact(link)
  link.href = @lookandfeel.lookup(:contact_url)
end


48
49
50
# File 'lib/oddb/html/view/navigation.rb', line 48

def link_keys
  user_navigation.concat [:contact, :home]
end

#user_navigationObject



51
52
53
54
55
56
57
58
# File 'lib/oddb/html/view/navigation.rb', line 51

def user_navigation
  nav = @session.user.navigation 
  if(nav.empty?)
    [:login]
  else
    nav
  end
end