app/views/layouts/_footer.html.haml
%div{class: "footer text-center"}
%div{ :class => :container }
%div{ :class => 'footer-left' }
%span= "®".html_safe+" PETS #{Date.today.year}"
| Terms and Conditions Apply
| All Rights Reserved
%div{ :class => "footer-right" }
- if pets_user.is_a?(CompanyPerson)
= link_to 'Home', home_company_person_path(pets_user)
|
= link_to 'About', about_path
|
= link_to 'Contact', contact_path
|
= link_to 'Post Job', new_job_path(company_id: pets_user.company.id,
company_person_id: pets_user.id),
class: "#{yield(:new_job_active)}"
|
= link_to 'List Company Jobs',
jobs_path(q: { company_id_in: [ pets_user.company_id ] })
- elsif pets_user.is_a?(AgencyPerson)
= link_to 'Home', home_company_person_path(pets_user)
|
= link_to 'About', about_path
|
= link_to 'Contact', contact_path
- elsif pets_user.is_a?(JobSeeker)
= link_to 'Home', home_job_seeker_path(pets_user)
|
= link_to 'About', about_path
|
= link_to 'Contact', contact_path
- else
= link_to 'About', about_path
|
= link_to 'Contact', contact_path