Module: PeopleHelper
- Defined in:
- app/helpers/people_helper.rb
Overview
Copyright © 2010, Diaspora Inc. This file is
licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file.
Instance Method Summary (collapse)
- - (Object) birthday_format(bday)
- - (Object) request_partial(single_aspect_form)
- - (Object) search_or_index
Instance Method Details
- (Object) birthday_format(bday)
23 24 25 26 27 28 29 |
# File 'app/helpers/people_helper.rb', line 23 def birthday_format(bday) if bday.year == 1000 I18n.l bday, :format => I18n.t('date.formats.birthday') else I18n.l bday, :format => I18n.t('date.formats.birthday_with_year') end end |
- (Object) request_partial(single_aspect_form)
7 8 9 10 11 12 13 |
# File 'app/helpers/people_helper.rb', line 7 def request_partial single_aspect_form if single_aspect_form 'requests/new_request_with_aspect_to_person' else 'requests/new_request_to_person' end end |
- (Object) search_or_index
15 16 17 18 19 20 21 |
# File 'app/helpers/people_helper.rb', line 15 def search_or_index if params[:q] I18n.t 'people.helper.results_for',:params => params[:q] else I18n.t "people.helper.people_on_pod_are_aware_of" end end |