Module: Renalware::HDHelper

Defined in:
app/helpers/renalware/hd_helper.rb

Instance Method Summary collapse

Instance Method Details

#hd_profile_breadcrumb(patient) ⇒ Object



9
10
11
# File 'app/helpers/renalware/hd_helper.rb', line 9

def hd_profile_breadcrumb(patient)
  breadcrumb_for("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 hd_session_breadcrumb(session)
  breadcrumb_for(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 hd_summary_breadcrumb(patient)
  breadcrumb_for("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