Module: Renalware::HDHelper
- Defined in:
- app/helpers/renalware/hd_helper.rb
Instance Method Summary collapse
- #hd_profile_breadcrumb(patient) ⇒ Object
- #hd_session_breadcrumb(session) ⇒ Object
- #hd_summary_breadcrumb(patient) ⇒ Object
- #session_edit_title(session) ⇒ Object
- #session_title(session) ⇒ Object
Instance Method Details
#hd_profile_breadcrumb(patient) ⇒ Object
9 10 11 |
# File 'app/helpers/renalware/hd_helper.rb', line 9 def (patient) ("HD Profile", patient_hd_current_profile_path(patient)) end |
#hd_session_breadcrumb(session) ⇒ Object
13 14 15 |
# File 'app/helpers/renalware/hd_helper.rb', line 13 def (session) (session_title(session), patient_hd_session_path(session.patient, session)) end |
#hd_summary_breadcrumb(patient) ⇒ Object
5 6 7 |
# File 'app/helpers/renalware/hd_helper.rb', line 5 def (patient) ("HD Summary", patient_hd_dashboard_path(patient)) end |
#session_edit_title(session) ⇒ Object
21 22 23 |
# File 'app/helpers/renalware/hd_helper.rb', line 21 def session_edit_title(session) I18n.t("renalware.hd.sessions_types.edit.#{session.state}") end |
#session_title(session) ⇒ Object
17 18 19 |
# File 'app/helpers/renalware/hd_helper.rb', line 17 def session_title(session) I18n.t("renalware.hd.sessions_types.show.#{session.state}") end |