Sha256: 2119cb809147103f1bd5081b21fc8b807d714b076005db6572b570499fa7fa56

Contents?: true

Size: 858 Bytes

Versions: 8

Compression:

Stored size: 858 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)

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_cpd-1.3.7 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.6 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.5 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.4 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.3 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-1.3.0 app/views/effective/cpd_statements/_summary.html.haml