Sha256: bf73d84f07e7903fbf526c2fce1407827133f18fe5812c62be95a4976b02ad4e

Contents?: true

Size: 908 Bytes

Versions: 55

Compression:

Stored size: 908 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module PDHelper
    def pd_summary_breadcrumb(patient)
      breadcrumb_for("PD Summary", patient_pd_dashboard_path(patient))
    end

    def pd_assessment_breadcrumbs(patient, assessment)
      [
        pd_summary_breadcrumb(patient),
        pd_assessment_breadcrumb(patient, assessment)
      ]
    end

    def pd_assessment_breadcrumb(patient, assessment)
      breadcrumb_for("PD Assessment",
      patient_pd_assessment_path(patient, assessment))
    end

    def pd_training_session_breadcrumbs(patient, training_session)
      [
        pd_summary_breadcrumb(patient),
        pd_training_session_breadcrumb(patient, training_session)
      ]
    end

    def pd_training_session_breadcrumb(patient, training_session)
      breadcrumb_for("PD Training Session",
      patient_pd_training_session_path(patient, training_session))
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
renalware-core-2.0.77 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.76 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.75 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.74 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.73 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.72 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.71 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.70 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.69 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.68 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.67 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.64 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.63 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.62 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.61 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.60 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.58 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.57 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.56 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.55 app/helpers/renalware/pd_helper.rb