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.54 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.53 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.52 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.51 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.50 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.48 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.47 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.46 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.45 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.44 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.43 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.42 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.41 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.40 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.39 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.38 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.37 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.36 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.35 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.34 app/helpers/renalware/pd_helper.rb