Sha256: 02ba48f7bc7dcd1ace1bbb74b74204bb2c0d7fe4f84c4c212bd420f7a5d44e68

Contents?: true

Size: 1.77 KB

Versions: 28

Compression:

Stored size: 1.77 KB

Contents

/ Note that summary_part#cache_key will be called and will return something like this
/
/  renalware/problems/problems/query-470b1201d5696133ec89b9415d438586-6-20180218160613719105
/
/ (see http://www.rubydoc.info/github/rails/rails/ActiveRecord%2FRelation%3Acache_key)
/ and because we are caching inside a partial, Rails will append the MD5 digest of this template's
/ content i.e. 1ff2cfc1505d571ac18a3d1d3708ebb4 and so in Redis the final cache key will be e.g.
/
/  renalware/problems/problems/...86-6-20180218160613719105/1ff2cfc1505d571ac18a3d1d3708ebb4
/
/ Note you can get the partial digest value using `cache_fragment_name[0]`
- cache_if(summary_part.cache?, summary_part) do
  .summary-part--problems
    article
      header
        h1
          = link_to "Problems (#{summary_part.problems.length})",
                    patient_problems_path(summary_part.patient)

        = link_to patient_problems_path(summary_part.patient), class: "button" do
          | Add

      table#problems.toggleable.toggleable--without-border-between-toggled-and-non-toggled-tr(data-controller="toggle")
        thead.toggleable--open
          th.togglers.noprint =rows_toggler
          th Description
          th.col-width-date Date

        - summary_part.problems.each_with_index do |problem|
          tbody.toggleable--open(class=("toggleable--no-toggleable-content" if problem.notes.none?))
            tr
              td.toggleable--toggler-container.noprint = row_toggler
              td
                span= problem.full_description
              td= problem.created_at.to_date
            tr
              td
              td
                - if problem.notes.any?
                  ol
                    - problem.notes.each do |note|
                      li= note.description
              td

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.166 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.165 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.164 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.163 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.162 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.161 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.160 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.159 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.158 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.157 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.156 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.155 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.153 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.152 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.151 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.149 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.148 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.147 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.146 app/views/renalware/problems/problems/_summary_part.html.slim