Sha256: b6563f3272fa42c772c7ab77f5591a288fa41a5a95e09c0f5926bbf25be22c1a

Contents?: true

Size: 942 Bytes

Versions: 20

Compression:

Stored size: 942 Bytes

Contents

= card(cpd_statement) do
  %table.table
    %tbody
      %tr
        %th Name
        %td
          = cpd_statement.user
          %br
          %small= mail_to cpd_statement.user.email

      - if request.path.start_with?('/admin')
        %tr
          %th User
          %td
            - url = (polymorphic_admin_path(cpd_statement.user) rescue "/admin/users/#{cpd_statement.user.to_param}/edit")
            = link_to(cpd_statement.user, url)

      - if cpd_statement.completed?
        %tr
          %th Completed
          %td= cpd_statement.submitted_at.strftime('%F %H:%M')

      %tr
        %th= cpd_cycle_label
        %td= cpd_statement.cpd_cycle

      %tr
        %th Total #{cpd_credits_label}
        %td= cpd_score(cpd_statement.score, cpd_statement.target_score)

      - if cpd_statement.carry_forward.to_d > 0.0
        %tr.carry-forward
          %th Carry Forward
          %td= cpd_score(cpd_statement.carry_forward)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_cpd-1.7.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.7.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.7.0 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.5 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.4 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.3 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.6.0 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.5.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.5.0 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.8 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.7 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.6 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.5 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.4 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.3 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.4.0 app/views/effective/cpd_statements/_summary.html.haml