Sha256: 4b580b08da33262f953a1e2fe2a1d2a02c04004bf63487284ad01be2cf1dd4ba

Contents?: true

Size: 649 Bytes

Versions: 35

Compression:

Stored size: 649 Bytes

Contents

module Renalware
  module HDHelper
    def hd_summary_breadcrumb(patient)
      breadcrumb_for("HD Summary", patient_hd_dashboard_path(patient))
    end

    def hd_profile_breadcrumb(patient)
      breadcrumb_for("HD Profile", patient_hd_current_profile_path(patient))
    end

    def hd_session_breadcrumb(session)
      breadcrumb_for(session_title(session), patient_hd_session_path(session.patient, session))
    end

    def session_title(session)
      I18n.t("renalware.hd.sessions_types.show.#{session.state}")
    end

    def session_edit_title(session)
      I18n.t("renalware.hd.sessions_types.edit.#{session.state}")
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.15 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.14 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.13 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.12 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.11 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.9 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.8 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.7 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.5 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.4 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.3 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.2 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.1 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0.pre.rc13 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0.pre.rc11 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0.pre.rc10 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0.pre.rc9 app/helpers/renalware/hd_helper.rb
renalware-core-2.0.0.pre.rc8 app/helpers/renalware/hd_helper.rb