Sha256: 3ed3b635bebc9d0280014743c60017072c1e72280f91e158f2fe3722868dd06b

Contents?: true

Size: 938 Bytes

Versions: 87

Compression:

Stored size: 938 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

87 entries across 87 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/helpers/renalware/pd_helper.rb
renalware-core-2.1.0 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.167 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.166 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.165 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.164 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.163 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.162 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.161 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.160 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.159 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.158 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.157 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.156 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.155 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.153 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.152 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.151 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.149 app/helpers/renalware/pd_helper.rb
renalware-core-2.0.148 app/helpers/renalware/pd_helper.rb